问题
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