【发布时间】:2020-05-24 13:37:53
【问题描述】:
无法使用命令 cmd package install-commit 1846176067 提交安装会话 1846176067。错误:INSTALL_FAILED_OLDER_SDK:在 installPackageLI 期间解析失败:/data/app/vmdl1846176067.tmp/base.apk(在二进制 XML 文件第 7 行):需要较新的 sdk 版本 #28(当前版本是 #25)
我的摇篮 应用插件:'com.android.application'
机器人{ compileSdkVersion 29 buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 28
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
依赖{ 实现 fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
请帮我解决问题。
【问题讨论】: