1 of your app is affected by Google Play's target API level requirements - Flutter
Asked Answered
A

6

11

I've received an email from Google Play telling me that I have to upgrade the target API level (before August 31, 2023).

So if I go to my android folder -> app -> build.gradle, I assume I'll have to change something here?

minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion

Thank you for any help!

Acme answered 19/8, 2023 at 5:38 Comment(0)
W
8
minSdkVersion 22
targetSdkVersion 33
Waterside answered 19/8, 2023 at 5:42 Comment(7)
Thank you for the answer but if I keep it like this targetSdkVersion flutter.targetSdkVersion and make an update to the Google Play Store, wouldn't this be fine as well?Acme
Yes @Acme it will be fine to keep targetSdkVersion like this.Kaka
Ok thank you, I rather keep it like this instead of manually changing the number. So keeping it like this or changing to 33, either one should work. Thanks again.Acme
Hello. I received such an e-mail for my application and I changed them manually like you, but I have a question in my mind. How do I transfer these features I changed? Do I need to update my app to a new version?Unconsidered
@Unconsidered either you got to publish new update to playstore before 31'st Aug or request for extension in play console page.Flintlock
@Flintlock thank you for your feedback. so what happens if I don't fix my app before August 31st?Unconsidered
@Unconsidered You cannot publish updates after the dead lineFlintlock
C
3

Please change this in build.gradle (App module) file

compileSdkversion 33

targetSdkVersion 33

With that, you also have to make behaviour changes for android-13

Corvin answered 22/8, 2023 at 10:14 Comment(2)
Give it more explanationPhylloquinone
You need to add SDK support version in android>app>build.gradle compileSdkversion 33 targetSdkVersion 33 @ChiragThummarCorvin
D
1

If your current API level is 31, you are OK.

enter image description here

https://support.google.com/googleplay/android-developer/answer/11926878?hl=en

Dissolvent answered 23/8, 2023 at 16:59 Comment(1)
Ok, but then why the alert? I have the same case, my app is targetSdkVersion 31 and I have the same warning. Even with the warning that we won't be able to upload updates later... it doesn't make sense, they are not consistent with this text you show. Fortunately it let me compile with the modification, but it doesn't make sense. Either the warning is poorly implemented or the documentation is wrong.Nerveless
K
0

Yes, now as per google play console guidelines.

Your app must target Android 13 (API level 33) or higher.

targetSdkVersion 33

From android play console ->

From Aug 31, 2023, if your target API level is not within 1 year of the latest Android release, you won't be able to update your app.

Kaka answered 19/8, 2023 at 6:6 Comment(8)
you won't be able to update your app. - What does it mean? After 31st Aug, we never make any release?Tamberg
You will not be able to publish a new update to your app.Kaka
Means before 31 august you have to publish an update by making your target api level within 1year of the latest android release. If you do not update you will not be able to release an update after 31st august.Kaka
You are just repeating google's words, I agree with @RohanPatel that this is actually quite ambiguous ! For example, on 1st September we want to update our app specifically TO TARGET API LEVEL 33, can we or can't we?! I can't believe that would be the case - it would render it (and countless others) zombie apps. There is a need to understand this statement from Google beyond the literal words, as it doesn't make senseShoulders
Yes you can't, I am just saying what I received in the email.Kaka
@PriyanshuPaliwal target api level within 1year of the latest android release....in your statement latest android release means Android 13 or Android 14?Flintlock
currently the latest release is android 14 which is target api level 34. and you can only keep latest api level - 1. In my case my app target api level was 32 so I have to update it to 33 so that it will be target api level within 1year of the latest android release.Kaka
You wont be blocked from uploading but you will need to update with the new API level when you do. If your current API level is X then your users wont notice anything. If it was older then it may not be available on newer devices.support.google.com/googleplay/android-developer/thread/…Complimentary
B
0

If you build android application using flutter, You need to update gradle file below code, you can also update your native android java/kotlin

gradle snap shot

    defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    
    multiDexEnabled true
    minSdkVersion 21
    targetSdkVersion 33
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}

Here is the code snap. and upload it to playstore before 31, August 2023

Babbitt answered 22/8, 2023 at 12:20 Comment(0)
S
0

Currently the newest target API level is 34 (Android 14) You should update your app regularly to make it available in GooglePlay. The newest API level you can always find in Android official documentation: https://developer.android.com/google/play/requirements/target-sdk

How to do that?

in build.gradle under defaultConfig set
targetSdkVersion 34
Shoer answered 11/7 at 6:8 Comment(1)
2024 people: read the link provided, specially the parts, quote: (...) New apps and app updates must target Android 14 (API level 34) or higher to be submitted to Google Play and Existing apps must target Android 13 (API level 33) or higher to remain available to new users on devices running Android OS higher than your app's target API level. This means that apps that already target Android 33 (targetSdkVersion 33) do not need to do anything, unless you want to update the app.Aramanta

© 2022 - 2024 — McMap. All rights reserved.