[英]Android Studio 0.8.6: Failure [INSTALL_FAILED_OLDER_SDK]
Debugging my app with Android Studio 0.8.6, I get the error: "Failure [INSTALL_FAILED_OLDER_SDK]" 使用Android Studio 0.8.6调试我的应用程序,出现错误:“失败[INSTALL_FAILED_OLDER_SDK]”
My build.gradle looks like this: 我的build.gradle看起来像这样:
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')
}
在清单文件中添加<uses-sdk tools:node="replace" />
并同步项目。
Check the doc at http://developer.android.com/preview/setup-sdk.html . 在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. 而且您必须在装有Android-L的设备中运行该应用程序,或在装有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. 当
compileSdkVersion
为'android-L'
或targetSdkVersion
为'L'
时,构建系统'L'
强制将minSdk设置为'L'
以防止使用API预览发布的应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.