Cocos Creator Android Release error Version code 1 has already been used. Try another version code

Hi all, I want to update my app in the Google play console, but I’m getting this error:
Version code 1 has already been used. Try another version code.

I found build.gradle in the build folder and changed version of code there:

I tried to build and make again several times, but I still see error in the Google Play console.

Where I need to set the version of code? Thanks

Ok I found the solution, version must be changed in this file:
your_project/native/engine/android/app/build.gradle

For me it doesn’t look clear, maybe better just include this option in the build window?

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.