"Version code 10000 has already been used. Try another version code."

"Version code 10000 has already been used. Try another version code."
android
Ethan Jackson

I'm trying to upload a second version of my app for internal testing on google play console, but I'm getting the error "Version code 10000 has already been used. Try another version code." when I try to install a second, newer, updated *.aab file.

I've tried changing config.xml contents from:

<widget version="1.0.0" ...

To

<widget version="1.0.02" android-versionCode="10002" ...

But it's giving me the same error? I also tried searching all files for "10000" but all I'm finding is files with "#10000" or similar, nothing relating to version codes?

I'm making the app in Cordova if that makes a difference?

Answer

It turns out I did have to modify "build.gradle" in the following way:

android { ... defaultConfig { ... versionCode = 10002 versionName = "1.0.02" } ...

Before, versionCode was 1, not 10000 which is why my text search didn't find it

Related Articles