问题描述
我刚才安装Android的工作室和我在从Eclipse的移植我的项目。当我尝试只运行该应用程序我的电话,这是4.4.2(API 19),我得到的错误失败[INSTALL_FAILED_OLDER_SDK]
。我build.gradle看起来是这样的:
I just now installed Android Studio and am porting my project over from 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]
. My build.gradle looks like this:
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'])
}
和我AndroidManifest看起来使用了以下内容:
And my AndroidManifest looks uses the following:
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
当我尝试我的设备上运行,在选择设备对话框下兼容它说没有,minSdk(API 20,L preVIEW)!= deviceSdk(API 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).
推荐答案
放下你的 compileSdkVersion
到 19
。 的android-L
锁定你到只船为L开发preVIEW设备/仿真器的图像。
Drop your compileSdkVersion
to 19
. android-L
locks you into only shipping to "L" Developer Preview devices/emulator images.
这篇关于在机器人工作室错误:INSTALL_FAILED_OLDER_SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!