I'm attempting to submit a Cordova app (That's built using Framework7) to the Google Play Store, but I'm getting the message "Your app currently targets API level 30 and must target at least API level 31"
I've tried everything I can find to change the API level to 31. Uninstalling and installing SDKs, editing build.gradle files, changing what version of the android platform Cordova adds, but I get either nothing but errors or no closer to being able to upload the app.
And the thing is, is that I JUST published this app a few weeks ago, but apparently Google has changed their requirements since then. So I'm wondering if this is even possible at this point.
CodePudding user response:
To target level 31, you need to upgrade to cordova-android 11.0 and then set your target to 31.
See this post
CodePudding user response:
I had similar issue and this is how I fix it on Monaca Platform. read this blog. after you set build environment for android setting. you need to add targetandroidSDK Version 31 by following these steps: go to Config -> App Setting for Android. That sit Good Luck
https://medium.com/the-web-tub/cordova-android-10-1-2-is-now-supported-b6c1329a784e