【问题标题】:Your application is currently targeting API level 23. However, it must target API level 26 to a minimum in order to benefit from the latest APIs您的应用程序当前的目标是 API 级别 23。但是,它必须至少将 API 级别 26 设为目标才能从最新的 API 中受益
【发布时间】:2018-08-23 00:59:33
【问题描述】:

拜托,我正在 Google Play 上发布应用程序,我遇到了 API 版本问题,我已经尝试将 API 版本更改为最新版本,但它没有工作 。 错误消息是:您的应用程序当前面向 API 级别 23。但是,它必须将 API 级别 26 设置为最低限度,才能从针对安全性和性能进行了优化的最新 API 中受益。将应用程序的目标 API 级别设置为至少 26。

这是我的 app.gradle

apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '27.0.3'

defaultConfig {
    applicationId "com.me.guide.myapp"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "DEVELOP-EMS"
}
buildTypes {
    release {
        debuggable false
        minifyEnabled true
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
} 
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.google.android.gms:play-services-ads:8.4.0'
}

谢谢?

【问题讨论】:

  • stackoverflow.com/q/33517184/62576 我看到上面写着targetSdkVersion 23。您是否尝试将其更改为 26?
  • 是的,我做了,但它不起作用
  • 您的 app.gradle 中有多个 23 条目。当然,您可以花一些精力来解决这个问题?

标签: android-studio google-play


【解决方案1】:

将您的targetSdkVersion 更改为 26。您说这不起作用。这是必需的解决方案,所以您能否详细说明为什么它不起作用?

【讨论】:

    猜你喜欢
    • 2019-05-21
    • 2019-05-15
    • 2022-11-14
    • 2022-10-04
    • 2018-10-28
    • 1970-01-01
    • 1970-01-01
    • 2019-08-28
    • 2022-10-14
    相关资源
    最近更新 更多