Google Play Store Release Issue [closed]
Asked Answered
S

8

84

I am trying to release a new version of my Android App. I can upload the APK file but after I click the "Review" Button I am getting below error.

Review summary Errors

Resolve these errors before starting the rollout of this release. You can't rollout this release because it doesn't allow any existing users to upgrade to the newly added APKs.

Please note that this app was developed using CORDOVA

The app version details are as below image. The only difference from the previous and this new version is the Target SDK is changed from 24 to 26

Can someone please give some idea to fix this issue. Thanks for your help

enter image description here

Stagger answered 10/11, 2017 at 0:56 Comment(2)
To add further to this because it might help others find this question and answer: I received the following cryptic error message in German after switching to App Bundle with one App: Dieser Release kann nicht eingeführt werden, da vorhandene Nutzer kein Upgrade auf die neu hinzugefügten APKs durchführen können. And it resultet from exactly the same versioning issue which I did not notice in the first place since apks and the App Bundle had different version numbers.Orford
I’m voting to close this question because meta.stackoverflow.com/q/272165Valiant
S
130

I contacted the Google support and they replied within 24 hours.

The issue is the android:versionCode in the AndroidManifest.xml is lower than my previous release. After I fixed the issue I was able to release my app without any issue.

How I fixed the issue

I changed the android-versionCode to a higher value in <manifest tag in the config.xml file so AndroidManifest.xml has the higher value.


Full reply from Google

Hi,

Thanks for contacting Google Play Developer Support.

You're seeing that error message because your new APK has a lower version code than the previous APK. Newer APKs must always have a higher version code than the previous version, or the Play Store won't know that the new APK is an update. Please change your new APK's version code to be at least 206020.

Regards,

Google Play Developer Support

Stagger answered 12/11, 2017 at 22:11 Comment(4)
I don't understand why they don't detect that and simply show a more clear error message..Crackbrained
oh god, finnally a solution! I agree with Luca! PlayConsole could me more specific pointing exactly what shoud be corrected. I spent few days looking for how to solve it, thanks for your sharing.Eleanoraeleanore
Thanks a lot mate You are a savior. This solution works. I was using android studio to build bundle and upload it to plays tore.Forcemeat
That worked for me, however versionCode in my case was located in the build.gradle file, not in Manifest.Maximilianus
J
50

If your Old APK version is a higher number than your New APK version then you get this error. enter image description here

It is not the version name that matters, that can actually be any string, it is only the version code which must always be higher than a previous version.

https://developer.android.com/studio/publish/versioning

To fix for Flutter

In pubspec.yaml it is the version line, and the number after the + sign is the one that must be higher than the Old Version Code shown in the Google Play Console screen as the "1 app bundle deactivated".
That would be 50 if this was your version line :

version: 1.0.0+50
Jiggermast answered 4/6, 2020 at 11:52 Comment(3)
Already did, I'm shifting from normal apks to appbundleSleekit
i didnt know about flutter one. thats really life saverSatterwhite
Note that the comparison here is simply between integer values. So 1.2 being 1020 will actually be less than 1.1.2 being 101010Dealt
G
7

I faced same issue, interestingly the versioncode(120001) of new release (12.0.0) was less than the versioncode(1104058) previous release (11.4.5)

I resolved this issue following this link Setting Android version code in Ionic 2

Giggle answered 19/9, 2018 at 13:22 Comment(0)
M
3
Update both versionCode and versionName. 

minSdkVesion 16 
targetSdkVesion 26
versionCode 2
versionName 1.1
Madancy answered 10/11, 2017 at 4:48 Comment(2)
Can you please tell me where I need to updated the version name. As I mentioned earlier this is a cordova project. These are the values I have in my xml fileStagger
For me it's in my build.gradle (:app) file.Casa
G
2

In your config.xml file's <widget> element, add/increment the android-versionCode attribute by one:

<widget id="com.example.foo" version="1.0.1" android-versionCode="10001" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

After that, running a cordova clean android and cordova build android --release gave me an .apk that the Google Play Console accepted.

Gopher answered 21/1, 2021 at 2:59 Comment(0)
O
1

have you upgraded your versionCode from previous versionCode?

minSdkVesion 16 
targetSdkVesion 26
versionCode 1 //you need to upgrade it from previous one
versionName 1.0
Outcome answered 10/11, 2017 at 4:30 Comment(1)
I tried this and i am getting the same error. But after I reduce the android version from 6.3.0 to 5.2.2 then its this error was fixed. Not sure why the new version is not working. Can you please help me how to fix this. Thanks for your helpStagger
D
1

If you are Monaca Cloud IDE for building and you are facing this error You cannot make this version available because it does not allow existing users to upgrade to new APKs that have been added. So here what is the problem, When you try to build APK then it generates a random number,

So make sure your new update version code is greater then this 10505 enter image description here

You can set in Monaca Cloud IDE version code

enter image description here

Desensitize answered 11/11, 2020 at 12:21 Comment(0)
S
0

In the root of your project will be a config.xml file. It contains a widget node that has an attribute of version. 1.17.01 in Example: <widget id="com.myapp.mobile" version="1.17.01" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

During a cordova prepare operation, this config.xml file is merged into the manifest file for your platform (e.g. platforms\android\app\src\main\AndroidManifest.xml for Android). The merged manifest file will contain both a version code and version string generated from the version listed in the config.xml. Ex: <manifest android:hardwareAccelerated="true" android:versionCode="11701" android:versionName="1.17.01" package="com.myapp.mobile" xmlns:android="http://schemas.android.com/apk/res/android">

This version code 11701 will be what is listed on the play console. To automatically set this version greater, you can add to your gradle.properties file a variable setting cdvVersionCodeForceAbiDigit=true which will automatically multiply the version by 10. Note this logic is laid out in the build.gradle file at the root of your platform app folder. There is other logic toggled with the cdvBuildMultipleApks variable to set different values based on product flavor (arm, x86, etc). But I think the recommended approach today is to upload a "bundle" and let Google automatically generate the separate apks for various device configurations.

Swish answered 4/12, 2019 at 18:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.