我在我的 Android Studio 中导入了一个项目并得到了下面的错误:
pkg: /data/local/tmp/mindmine.com.welcometol
Failure [INSTALL_FAILED_OLDER_SDK]
Bellow 是我的 build.gradle
,我将 minSdkVersion 21
更改为 minSdkVersion 8
但我仍然出错:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "mindmine.com.welcometol"
minSdkVersion 21
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:recyclerview-v7:21.0.3'
compile 'com.android.support:cardview-v7:21.0.3'
}
最佳答案
我认为您将 list 中的 minSdkVersion
21 更改为 minSdkVersion
8
在你的 Gradle 中改变它
defaultConfig {
applicationId "mindmine.com.welcometol"
minSdkVersion *<Put yoru min SDK here>*
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
关于android - 在 Android Studio 中失败 [INSTALL_FAILED_OLDER_SDK]?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28806476/