I had my first version of the app in v21. Now, after many days of upgrading v21 to v36, I tried building it and uploading it in the Google Play Console. But when I tried uploading the app bundles/apk (I have tried both apk and app bundle) it provides me with an error as shown below. Can anyone please help me figure this out. Since, I am already late to publish my app so I want to fix this asap.
Then run ls lib in the unzipped APK. You should see something this:
$ ls lib/
arm64-v8a armeabi-v7a x86 x86_64
The above shows that there is 32 bit and 64 bit code for both ARM and x86.
I don’t have an App Bundle handy, but an App Bundle is also just a ZIP file and I’m pretty sure it will also have at least the shell-app-manifest.json and probably also files/directories for the 32 bit and 64 bit native code.
If you don’t see "sdkVersion":"36.0.0" or the 64 bit code is missing then either you have the wrong APK/App Bundle or somehow the build service has built the wrong version of your app or used the wrong app.json. I’m not sure how this could happen, but if so you might try clearing caches etc. like this before building again:
I just looked into the app bundle and found out the sdkVersion is mentioned as 36.0.0 and there are all the four libraries inside the lib folder as well. I am really not sure what’s wrong with the build.
I think the problem might be that the old APK is still available as part of your release.
In the following documentation under Step 2 there is a section about APKs/App Bundles to deactivate. I think you might need to make sure the previous version(s) of your app are deactivated: