繁体   English   中英

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

[英]configuration error message on google play store when uploading new APK

我正在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.

我该如何解决这些错误

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

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

如果您在专案中使用build.gradle档案,请移除androidmanifest.xml的值,并仅在build.gradle档案中进行设定,如下所示。

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM