Android minsdkversion

Just submitted a new-update-version of my game to google-play-console. The .aab file was uploaded and completed all the other steps and it was accepted, but have not done the ‘Create Production Release’ because I still get this msg:

App not available to new users on Android versions higher than your target API level. App must target Android 13 (API level 33) or higher

App updates with these issues will be rejected
App must target Android 14 (API level 34) or higher
Enforced Aug 30, 2024

I have the minsdkversion = “14”. what else need I do to make sure my game is targeting 14 (api level 34) or higher ???

Thanks

Build 3709 fixed this issue for me.
Also I’m using minsdkversion = “16” although I can’t remember why exactly.
Probably because of some plugin :smiley:

Thank you Casey

I even saw somewhere on the forum where someone used minsdkversion = “21”
which is what I was using on my first attempt to submit my game-update to google, but checking on Internet, 14 is the highest android currently has, so I resubmitted using “14” … still showed that ‘must target message’ …

I am using 3710. … I am curious, did you ‘drop back’ from 3710 to 3709?

Thanks
Bob

Couple of things:

  • The message about needing to target API 33 won’t go away until you’ve published a new version of the app that targets the correct version of Android.
  • minsdkversion in build.settings relates to the minimum SDK a potential user needs to be running on their device in order to even be able to download the app. The app’s Target SKD is set by the version of Solar2D you’re using.
  • SDK and API level are the same thing, which is different from Android version number. So, the current version of Android is 14, but the number referred to in minsdkversion is the API level.
  • Don’t set your minsdkversion to 34- it will mean that the only devices that will be able to download or update you app are those running the latest version of Android. In reality, just because you’ve targeted API 34 doesn’t meant that a device needs to be running API 34 to be able to run the app. Just leave it at 14 or whatever- any plugin that requires a nigher minsdkversion will have that as part of its manifest and bump the minsdkversion up for you automatically.

So, if you build with 3710 and publish the update, you should get a message in about a day or so from Google thanking you for addressing the policy violation, and that message about how no one can download your app will go away.

Colin,

Many thanks… very detailed and helpful. Really good info!

I chose "21’ originally because I do use the appodeal plugin and on their site it says appodeal sdk 3.3 must be used and it shows:
MINIMUM REQUIREMENTS:

Android API level 21 (Android OS 5.0) or higher. I guess I mixup version and api level

so should set my minsdkversion = “14” or “16” as “16” listed in the solar2d docs for appodeal ? Will either cover the API 21 required by appodeal?

Thanks again!

You might as well set your minsdkversion to 21 if that’s what Apodeal requires. If you leave it at 14, the Apodeal plugin will probably override that setting and make it 21 anyway, so it’s not critical.

Thank Colin!

To fix this, just update the targetSdkVersion in your build.gradle file to API level 34:

gradle

Copy code

android {
    compileSdkVersion 34
    defaultConfig {
        targetSdkVersion 34
    }
}

Rebuild your app, then upload the updated .aab file to Google Play Console. This should solve the issue!