As pointed out by Thiago Luiz Domacoski, to publish a new APK on Google Play, the value of the versionCode in your Gradle, must be higher than the value of the last published APK.
defaultConfig {
/* ... */
versionCode 2 // <---- Número da versão do app
versionName "nome da versao"
/* ... */
}
To find out the value of the versionCode of the latest published version of an app:
- Open Google Play Developer Console
- Select an app
- Select Version Management in the side menu
- Click on Versions of Apps in the submenu
- In the information that appears look for APK version code. This is your last used versionCode, so the next version you publish for this app, should have a larger number than this.
What is the versionCode and versionName is in the store and which one is trying to climb?
– Thiago Luiz Domacoski
I believe they’re the same. I’m trying to climb a new version for the fifth time and the first and second one worked, from the third to the fifth this message appears. How the names should be?
– Tiago Segato
So the version code should increase it one more! If it is 10 for example, the version that is in Google Play, the next one to go up should be the 11
– Thiago Luiz Domacoski
So. the current version published in the store is 2, I have tried to publish version 3 and 4 and it appears the error that "You already have an APK with version 3 or 4 code" And when I try to send one that I haven’t tried it presents this topic error.
– Tiago Segato
I JUST TRIED TO PUT VERSION 6 ON AND IT WORKED! THANK YOU VERY MUCH!!!
– Tiago Segato