Some users reported this error when attempting to install my app from Google Play store. I could not find any reference to it, so documenting the solution here.
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
I found this little gem in a list of notifications in google play developer:
Wow! That is going to cause a heck of a lot of apps to stop working, and require a lot of development work on apps that are perfectly functional and don't otherwise need updating.
Solution is to update your
targetSdkVersion
in your app.And remember to do this every 2 years for all your apps!
(For my build tools I find searching everywhere using Android Studio for 'targetSdkVersion' and updating the numbers from 29 to 31 is the simplest approach, then fixing any resulting build errors, which in this case meant I had to upgrade Android Studio as well due to java version 11 being required for android 31 - refer unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)).
I ran into a similar error. We had an APK with API 31 in the internal test release section. In the Google Play console and devices with Android 12 and 13, we were presenting that message when trying to download the app:
The way it was solved is to release this version with API 31 or higher to production. This is because the store has a bug in it, and if you currently have an old APK in production with an API of 29, for example, this will generate an incompatibility with the others APKs that are in the test segments. That is, when launching to production, the new APK deactivates the old version that creates a conflict, and there will no longer be a problem when downloading on the new devices.
If you see this test as risky, you can make a progressive launch of 1% in the production segment.