, ,

Your app currently targets API level 31 and must target at least API level 33 to ensure it is built on the latest APIs

Posted by

Error

Solution:

Step 1: Got to your project pubspec.yaml file and change version

Step 2: Got to your project terminal and run this command

flutter pub get

Step 3: Got to your project terminal and run this command

flutter clean

Step 4: Got to your project terminal and run this command

flutter build apk --target-platform android-arm,android-arm64 --split-per-abi

Step 5: Open your project in Android Studio. and got to app/build.gradle file change targetSdk and minSdk version

Step 6 : Open your project in Android Studio. and wait for a while it will reload and you can see the top right corner and click

Step 7 : Click New window

Step 8 : After that click here

Step 9 : change this Properties Sdk Version 31 to 33

Like this change apply

Step 10 : change this default Config Sdk Version 31 to 33

Like this change and apply

Step 11:

After that go to the build section on the navbar and select generate signed bundle/apk

Step 12:

Step 13: choose exisiting key store path, key store password and key alias and next

Step 14: realse and Finish

Step 14 open app-release.aab file

Step 15: drag ā€œapp-release.aabā€ upload in play console and click next

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x