I am using react native version 0.63 and while uploading apk on google play store getting this error.
Your app currently targets API level 29 and must target at least API level 30 to ensure that it is built on the latest APIs optimised for security and performance. Change your app's target API level to at least 30
Kindly help on this.
Open your build.gradle in android folder
compileSdkVersion = 30
targetSdkVerion = 30
buildToolsVersion = "30.0.2"
From November 2021 apps to be uploaded in playstore need to have target SDK version as 30.
Related
I have an Android app that was last released targeting API level 29. I'm trying to upgrade to API level 30 with its enforced scoped storage. I'm having some difficulty implementing it, and I would like te be able to compare my app's performance under API level 30 with what it used to do under level 29. However Android Studio won't let me set targetSdk to 29 in build.gradle. It complains that "Google Play requires that apps target API level 30 or higher", and at runtime Build.VERSION.SDK_INT evaluates to 30. The SDK manager shows both Android 10.0 (29) and Android 11.0 (30) as being installed.
I don't want to release an app with with an out-of-date API, I just want to be able to try it out on my own test devices. How can I convince Android Studio to allow this?
I want to write an android app in android studio. I need API level 21 for permissions in install time not in run time, but android studio does not allow to use api level 21. The error is:
Google play requires that apps target API level 26 or higher...
Is there any way i write my program in api level 21 in year 2019!!!?
error in gradle
Set targetSdkVersion to 26 & minSdkVersion to 21.0 in "build.gradle".
I am building an android app with Meteor/Cordova. My meteor is currently version 1.5, Cordova 4.3.0. My default build uses API 25 but when I try to submit my APK to the play store, I get this message:
Your app currently targets API level 25 and must target at least API level 26 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 26
.
How do I upgrade to API level 26?
inside mobile-config.js add
App.setPreference('android-targetSdkVersion', '26');
Go to gradle, and search for targetSdkVersion = 25 . Change it to use android targetSdkVersion = 26
When I raise my app on Google play
This shows me the problem
Your app currently targets API level 25 and must target at least API level 26 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 26
Note I use Unity
You have updated sdk the latest version
Please help how I change API level to at least 26
in Unity
Thanks
Just open your build.gradle(Module: app) and change your compileSdkVersion and targetSdkVersion 26 or more than 26.
Target API level is a setting in PlayerSetting. Just change it there
go to build.gradle file in your project
look for defaultTargetSdkVersion & defaultCompileSdkVersion
then change value to 26
I am trying to upload my instant app with targetSdkVersion 25 and my installed app is also with targetSdkVersion 25.
When I try to upload my instant app on play console, I am getting the following error,
I do not see in documentation that it is mandatory to support targetSdkVersion 26. What am I missing here ?
I cannot update my targetSdkVersion to 26 since targetting for my installable and instant app should be same.
My installable app must have targetSdkVersion of 25 for now due to a dependency. Can I upload my instant app with targetSdkVersion of 25 ?
Read Prepare your development environment.
Android SDK Build-Tools 26.x or higher
Android SDK Platform Tools 25.x or higher
Android SDK Tools (latest)
You should set
compileSdkVersion 27
buildToolsVersion '27.0.3'
And
defaultConfig {
targetSdkVersion 26
}
As Android evolves with each new version, some behaviors and even
appearances might change. However, if the API level of the platform is
higher than the version declared by your app's targetSdkVersion, the
system may enable compatibility behaviors to ensure that your app
continues to work the way you expect.
For those who are still wondering about this issue. Google imposed a restriction that both Instant app and install-able app should target at least 26.