Android的工作室0.8.6:失败[INSTALL_FAILED_OLDER_SDK] [英] Android Studio 0.8.6: Failure [INSTALL_FAILED_OLDER_SDK]
问题描述
调试我的应用程序与Android工作室0.8.6,我得到的错误:失败[INSTALL_FAILED_OLDER_SDK]
我的build.gradle看起来是这样的:
应用插件:'com.android.application安卓{
compileSdkVersionAndroid的L'
buildToolsVersion20.0.0 defaultConfig {
的applicationIDcom.example.bla.towerofhanoi
14的minSdkVersion
targetSdkVersion'L'
版本code 1
的versionName1.0
}
buildTypes {
发布 {
runProguard假
proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro
}
}
}依赖{
编译文件树(导演:'库',包括:['的* .jar'])
编制项目(':THIRD_PARTY:andengine')
}
检查文档在的 http://developer.android.com/$p$pview/setup-sdk.html 。
您必须使用
的minSdkVersion'L'
,你必须运行与Android-L或与Android-L的仿真器设备的应用程序。
构建系统时, compileSdkVersion
是'的android-L'
或 targetSdkVersion
是'L'
迫使minSdk与在API公布的'L'
来prevent应用preVIEW。
Debugging my app with Android Studio 0.8.6, I get the error: "Failure [INSTALL_FAILED_OLDER_SDK]"
My build.gradle looks like this:
apply plugin: 'com.android.application'
android {
compileSdkVersion 'android-L'
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.example.bla.towerofhanoi"
minSdkVersion 14
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 project(':third_party:andengine')
}
Check the doc at http://developer.android.com/preview/setup-sdk.html.
You have to use
minSdkVersion 'L'
and you have to run the app in device with Android-L or an emulator with Android-L.
The build system when compileSdkVersion
is 'android-L'
or targetSdkVersion
is 'L'
forces the minSdk to 'L'
to prevent apps published with the API in preview.
这篇关于Android的工作室0.8.6:失败[INSTALL_FAILED_OLDER_SDK]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!