Android 失败[INSTALL\u FAILED\u OLDER\u SDK]错误
我在API 18上设置了AVD仿真器,清单如下:Android 失败[INSTALL\u FAILED\u OLDER\u SDK]错误,android,Android,我在API 18上设置了AVD仿真器,清单如下: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="pushpindesigns.com.lines" android:versionCode="1" android:versionName="1.0"> <uses-sdk andro
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pushpindesigns.com.lines"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="12" android:targetSdkVersion="20"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".mainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Level_1"
android:label="@string/title_activity_level_1" >
</activity>
</application>
上面的代码已更新,但仍然无法使用………..请告诉我您的想法用其他东西替换
android-L
-20
或19
。“L”开发者预览版只能在装备了“L”的设备和模拟器上运行
另外,
build.gradle
中的targetSdkVersion
会覆盖清单中的版本。将build.gradle
中的targetSdkVersion
替换为20
什么是您的构建SDK(例如,Eclipse中的Project>Properties>Android,在build.gradle中的compileSdkVersion
用于Android Studio)?上面写着“android-L”,我应该把它改成18吗?我还没有详细研究过,但我认为你不能运行任何目标为20的应用程序(android-L)在未安装Android L的设备上。将其更改为18后,会出现相同的错误,我的AVD是api18@user3830363:您可以发布您的build.gradle
文件作为对您的问题的编辑吗?更新并添加了build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 18
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "pushpindesigns.com.lines"
minSdkVersion 8
targetSdkVersion 'L'
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:19.+'
}