I have updated the versionCode on both locations of the APK, the grade file and the manifest with the same value, when I try to upload a new APK into the production portal I keep getting the same error, can somebody assist?
I have updated the versionCode on both locations of the APK, the grade file and the manifest with the same value, when I try to upload a new APK into the production portal I keep getting the same error, can somebody assist?
Make sure that the versionCode in the gradle file and the manifest file are both the same and that they match the versionCode of the previously uploaded APK. If they don't match, this could cause the error.
Check to see if there are any other errors or warnings in your gradle build output. Sometimes, there may be other issues in your build that are causing the error.
If you're using Google Play Console to upload your APK, make sure that you're uploading the correct APK file. Sometimes, developers accidentally upload the wrong APK file, which can cause issues.
Try cleaning and rebuilding your project. Sometimes, this can help to resolve build-related issues.
The most common reason for getting an error when uploading a new APK to the production portal is that the versionCode has not been updated. The versionCode is a unique identifier for your app, and it must be incremented each time you release a new version of your app.
Can you provide us with your App id in a moderator's only post?
What is the versionCode in the manifest of the file you are trying to upload?
grade:
defaultConfig { versionCode 5 versionName "5.0" minSdkVersion MIN_SDK_VERSION targetSdkVersion TARGET_SDK_VERSION }
manifest:
android:versionCode="5" android:versionName="5.0"
3 People are following this question.