上传失败您需要为您的 APK 使用不同的版本代码,因为您已经有一个版本代码为 2 的 [英] Upload failed You need to use a different version code for your APK because you already have one with version code 2
问题描述
根据这个答案 如何解决你的APK的版本号需要高于2."在 Google Play 的开发者控制台中?我刚刚将版本代码从 2 更改为 3,但无法上传构建版本.
According to this answer How to solve "Your APK's version code needs to be higher than 2." in Google Play's Developer Console? I have just changed the version code from 2 to 3 and it failed to upload the build.
这是我上传 apk 之前的旧清单
This is my old manifest before I uploaded the apk
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mypackage name"
android:installLocation="auto"
android:versionCode="28"
android:versionName="1.0028" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
.....
这是我必须在 android 开发者控制台上上传的新版本代码.看我的清单
here is the new version code which I have to upload on android developer console. See my menifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mypackage name"
android:installLocation="auto"
android:versionCode="2"
android:versionName="2.0001" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
......
我不知道这是什么问题.有什么帮助吗?
I dont know whats the issue. Any help?
推荐答案
android:versionCode="28"
您之前的 versionCode
是 28.您应该将其增加 1 到 29.
Your previous versionCode
was 28. You should increment it by 1 to 29.
android:versionCode="29"
据推测,您之前的应用版本是 1 到 28.通过使用 versionCode 3 发布,您会与已经使用此 versionCode 发布的应用的先前版本发生冲突.
Presumably, your previous app versions were 1 through 28. By releasing with versionCode 3, you are conflicting with a previous version of your app that was already released with this versionCode.
这篇关于上传失败您需要为您的 APK 使用不同的版本代码,因为您已经有一个版本代码为 2 的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!