【问题标题】:The application could not be installed: INSTALL_FAILED_OLDER_SDK,无法安装应用程序:INSTALL_FAILED_OLDER_SDK,
【发布时间】: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'

}

请帮我解决问题。

【问题讨论】:

    标签: android sdk


    【解决方案1】:

    您已提供minSdkVersion 28,这意味着,要运行应用程序,设备必须至少具有 android P。如错误中所述,您尝试在 API 级别 25(即 android N.To)上运行的设备中运行应用程序解决问题,您可以将 minSdkVersion 更改为 25 (minSdkVersion 25),或者您必须在运行 android pie 或更高版本的设备上运行应用程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-27
      • 2020-06-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多