上传新APK时,Google Play商店中的配置错误消息

时间:2015-11-24 09:42:59

标签: android

我正在google play商店上传新的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.

我该如何解决这些错误

1 个答案:

答案 0 :(得分:1)

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

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

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

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

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

相关问题