How do i upgrade my android target API in Meteor - android

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

Related

Downgrading Android Studio to API level 29

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?

react native 0.63 upgrade 29 to 30

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.

programming with api level 21 in android studio

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".

Change your app's target API level to at least 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

Issues executing code on higher API levels Android

My minSDK version is 16 and my targetSDK version is 27. The compileSDK version is 28.
Since the targetSDK version is 27 it should run on Oreo(8.0.0) without issues but some of the features don't work as intended. However they do work fine on Nougat.
Why is this so?
The targetSDK is stating what you built in the app to be able to handle. So, there might be a new feature in API 28 and you're saying your code was build against API 27 so if you're running on API 28 and there is support on 28 for how you used the api before, then it will try to maintain your API 27 coded behavior. There still exists the possibility your API 27 code will result in different or wrong behavior if run on API 28 though.
Please review the documentation as well:
https://developer.android.com/guide/topics/manifest/uses-sdk-element
"To maintain your application along with each Android release, you should increase the value of this attribute to match the latest API level, then thoroughly test your application on the corresponding platform version."

Categories

Resources