失败[INSTALL_FAILED_OLDER_SDK]机器人工作室 [英] Failure [INSTALL_FAILED_OLDER_SDK] Android Studio
问题描述
我是新的Android和我使用的是Android的工作室。我创建了一个新的项目只是为了显示世界您好!但我不能让它工作,因为这个错误的AVD:失败[INSTALL_FAILED_OLDER_SDK]
I'm new to Android and I'm using the Android Studio. I've created a new project just to show the Hello World! but I can't get it working on the AVD because of this error: Failure [INSTALL_FAILED_OLDER_SDK].
我已经搜索的答案,我知道这是一些关于build.gradle和的minSdkVersion但是任何答案为我工作。
I already searched for the answer and I know it's something about the build.gradle and the minSdkVersion but any of the answers worked for me.
这是我的AndroidManifest.xml:
This is my AndroidManifest.xml :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.scoelli.test" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MyActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
这是我build.gradle:
And this is my build.gradle :
apply plugin: 'com.android.application'
android {
compileSdkVersion 'android-L'
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.example.scoelli.test"
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'])
}
我会AP preciate不仅是答案,但解释。
I would appreciate not only the answer but the explanation.
感谢您!
推荐答案
除非你知道你想被使用Android大号开发preVIEW您的应用程序,不针对与它进行编译。它在很大程度上仍然是一个preVIEW释放,看来好像应用目标和编译为preVIEW导致这个错误与任何非-L设备。
Unless you know you want to be using the Android L developer preview with your application, do not target and compile with it. It is still very much a preview release, and it appears as though applications targeting and compiling for the preview cause this error with any non-L device.
在你的build.gradle更新这些行坚持使用最新的稳定版本(Android 4.4系统,API 19):
Update these lines in your build.gradle to stick with the latest stable release (Android 4.4, API 19):
android {
compileSdkVersion 19
defaultConfig {
targetSdkVersion 19
}
}
这篇关于失败[INSTALL_FAILED_OLDER_SDK]机器人工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!