I was sucessfully uploading my apk to the play store in branch internal testing and suddently, it started to refuse my new apk with this error:
You need to use a different version code for your APK or Android App Bundle because you already have one with version code 1.
This is my app.json
used by expo for generating the manifest:
{
"android": {
"package": "com.myapp.www",
"versionCode": 360010305,
"permissions": [
"CAMERA_ROLL",
"CAMERA",
"LOCATION",
"NOTIFICATIONS",
"WRITE_EXTERNAL_STORAGE",
"READ_EXTERNAL_STORAGE"
]
}
}
I use this since I have installed semantic-release-expo
which take care of updating the app.json
for me upon each new release.
Since the default is already code
, I wonder why I still got this error, perhaps I should change this setting to increment and set the versionCode
to 1 ?
Why I am not allowed anymore to publish the builded apk (on expo's CIs) to the PlayStore anymore ?
The problem did arrive with expo SDK36, removign the
sdkVersion
frompackage.json
and causingexpo-semantic-release
to not update theversionNumber
of the android application.This was fixed by adding in my expo configuration
app.json
: