在Android中失败[安装\u失败\u旧的\u SDK]

在Android中失败[安装\u失败\u旧的\u SDK],android,admob,Android,Admob,我试图实现MobAd功能,但我面临错误 Failure [INSTALL_FAILED_OLDER_SDK] 我不是安卓开发者。。只是想实现这个功能,有人能帮我吗 这是我的清单: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.dinesh.mobdemo" >

我试图实现
MobAd
功能,但我面临错误

Failure [INSTALL_FAILED_OLDER_SDK]
我不是安卓开发者。。只是想实现这个功能,有人能帮我吗

这是我的
清单

   <?xml version="1.0" encoding="utf-8"?>
   <manifest xmlns:android="http://schemas.android.com/apk/res/android"
   package="com.dinesh.mobdemo" >
   <uses-permission android:name="android.permission.INTERNET" />
   <uses-permission    
   android:name="android.permission.ACCESS_NETWORK_STATE" />
    <application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />

    <activity
        android:name=".MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.google.android.gms.ads.AdActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
</application>
}

布局:


请帮助我缺少什么

您缺少的
使用sdk
元素,尤其是清单中的
minSdkVersion
属性

当它们丢失时,min SDK级别默认为1,这被认为“太旧”

“依赖项”部分表示您正在使用Gradle,因此也可以在应用程序的build.Gradle文件中指定
minSdkVersion

    dependencies {
      compile 'com.android.support:support-v4:21.0.0'
      compile 'com.android.support:appcompat-v7:21.0.0'
      compile 'com.google.android.gms:play-services:6.1.11'
      compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services:4.4.52'
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res
/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity">


<TextView android:text="@string/hello_world"   
  android:layout_width="wrap_content"
    android:layout_height="wrap_content" />


<com.google.android.gms.ads.AdView
    android:id="@+id/adMob"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    ads:adSize="BANNER"
    ads:adUnitId="ca-app-pub-1301186605291775/1237290645" />
  </RelativeLayout>
  <?xml version="1.0" encoding="utf-8"?>
  <resources>

    <string name="app_name">MobDemo</string>
    <string name="hello_world">Hello world!</string>
   <string name="action_settings">Settings</string>
   <string name="adMob">adMob</string>
  </resources>