【问题标题】:configuration error message on google play store when uploading new APK上传新 APK 时 google play store 上的配置错误消息
【发布时间】:2015-11-24 18:03:28
【问题描述】:

我正在 google play store 上上传新的 APK 文件,但是当我上传时显示一条消息,例如

This configuration cannot be published for the following reason(s): Version 3 is not served to any device configuration: all devices that might receive version 3 would receive version 4.

我该如何解决这些错误

【问题讨论】:

  • 比较两个版本的清单...
  • @PankajKumar 我的第一个清单版本 1.3,现在是最新版本 1.4
  • 我的意思是比较你的清单,而不仅仅是版本名称。

标签: android


【解决方案1】:

Google Play 商店使用 versionCode 而非 versionName 检查版本。而版本代码只允许integer。因此,不能有 1.3 或 1.4 作为 VersionCode。见document

您可以在androidmanifest.xml 中更改android:versionCode="5" 并检查是否显示错误消息。

如果您在项目中使用build.gradle文件,请删除androidmanifest.xml处的值,并仅将其设置在build.gradle文件中,如下所示。

defaultConfig {
    versionCode 5 // <- this line to set.
    minSdkVersion 14
    targetSdkVersion 22
}

如果想知道上传的versionCode是什么,可以点击上传的包列表。将显示 apk 信息弹出窗口。

【讨论】:

    猜你喜欢
    • 2016-08-27
    • 1970-01-01
    • 1970-01-01
    • 2016-02-15
    • 2018-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多