[英]Error in Android Studio: INSTALL_FAILED_OLDER_SDK
I just now installed Android Studio and am porting my project over from Eclipse. 我刚刚安装了Android Studio,并且正在从Eclipse移植我的项目。 When I try to run the app only my phone, which is 4.4.2 (API 19), I get the error
Failure [INSTALL_FAILED_OLDER_SDK]
. 当我尝试仅通过我的手机(即4.4.2(API 19))运行该应用程序时,出现错误
Failure [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.appuccino.collegefeed"
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
repositories {
mavenCentral()
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
And my AndroidManifest looks uses the following: 我的AndroidManifest外观使用以下内容:
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
When I try to run on my device, on the Choose Device dialog under Compatible it says No, minSdk(API 20, L preview) != deviceSdk(API 19). 当我尝试在设备上运行时,在“兼容”下的“选择设备”对话框上,它说不,minSdk(API 20,L预览)!= deviceSdk(API 19)。
Drop your compileSdkVersion
to 19
. 将您的
compileSdkVersion
降至19
。 android-L
locks you into only shipping to "L" Developer Preview devices/emulator images. android-L
锁定您仅运送到“ L” Developer Preview设备/仿真器图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.