Compatibility Issue with Flutter Project on Android 12 and Later Versions

1k views Asked by At

I have a Flutter project and I developed it in Flutter 1.20.0. However, I'm getting a warning in the Google Play Store that the app is incompatible with Android 12 and higher. I have taken several steps to resolve this issue but still no solution. I have taken several steps to resolve this issue but still no solution. Here are the steps I tried:

I updated my flutter version(from 1.20.0 to 3.10.6) and updated the packages in the project. I published the app on Google Play Store for internal testing but the compatibility issue remains.

I tried different Android API levels, but none of the levels fixed the issue.

  • API Level 16+
  • API Level 33+

I changed the compileSdkVersion value, but that didn't fix the problem either.

  • compileSdkVersion 21
  • compileSdkVersion 33
  • compileSdkVersion 34

I changed the targetSdkVersion but still the problem persists.

  • targetSdkVersion 34

Google Play Screenshots :

enter image description here

enter image description hereenter image description here

Google Policy Alert

From play console

Proof of compatibility

enter image description here

2

There are 2 answers

0
Doğuş Deniz On BEST ANSWER

Finally I asked Google support and they told me I could make staged rollouts.

If there was a problem, I would be able to roll back my update.

That's why I released it for 5% of my users.

After going through the approval process, the compatibility issue was resolved.

Then I released it to 100% of my users and then the problem was completely solved.

5
Kamal On

Inside your project go to this file android > app > src > build.gradle.

Make sure you keep

minSdkVersion 21 or set it based on your requirement.

targetSdkVersion 33 or 34 if you're developing for android 14

compileSdkVersion 33

targetSdkVersion & compileSdkVersion should be same.