You need to use a different version code for your APK because you already have one with version code 2

走远了吗. 提交于 2019-12-11 00:52:10

问题


I published my android application in Play Market two days ago. Today I made update of this application. I changed the versionCode in build.gradle from 1 to 2, and versionName from "1.1" to "1.1.1". When I had uploaded the apk file in Google Play Console, the browser crashed. When I had uploaded the apk file again, I got this error:

You need to use a different version code for your APK because you already have one with version code 2.

however there is only one version of my application in "APKs to diactivate" block and there are no APKs in "APKs to add" block. How can I solve this problem? Thanks in advance!


回答1:


I found the solution: I pressed "ADD APK FROM LIBRARY" button and there was my apk)




回答2:


You can do this things

  • Try to push an apk with version code 3
  • Make sure the apk you are generating is the apk you are uploading



回答3:


You are probably facing a very especific issue.

Just change your versionCode to 3 and move on ;)



来源:https://stackoverflow.com/questions/45105406/you-need-to-use-a-different-version-code-for-your-apk-because-you-already-have-o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!