Questions tagged [target-sdk]

An integer designating the API Level that the application targets. This attribute informs the system that you have tested against the target version and the system should not enable any compatibility behaviors to maintain your app's forward-compatibility with the target version.

Useful Links

74 questions
1
vote
0 answers

ScrollView not scrolling anymore after SDK version upgrade

I have a Fragment with a ScrollView inside a RelativeLayout that used to work without any problem until now that I upgraded the project's targetSdkVersion and compileSdkVersion from, respectively, 22 and 23 to 27 and, according to this change, I…
MajCloud
  • 11
  • 1
1
vote
2 answers

Android Apk Submission target

I tried to submit my updated application to playstore. When I tried upload the apk on production, there was notice saying Play Store will require that new apps and app updates target a recent Android API level. This will be required for new…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
1
vote
0 answers

Collections.singletonList works on APIs < 26

According to the official documentation, Collections.singletonList is added on API 26. I have targetSdkVersion 25 and minSdkVersion 19 and my app still compiles and runs perfectly on emulators/devices below 26 when I use this method. How is this…
giorgos.nl
  • 2,704
  • 27
  • 36
1
vote
0 answers

Why I need to update targetSdk in Android projects?

I can't found any useful info about why we need to update targetSdk in Android projects? I can simply update compileSdk to newer version, use new API, and have no any restriction, that can apply newer versions of Android. Can I fill any performance…
1
vote
1 answer

App is incompatible with LGE Nexus 4 and 5

I recently updated my app (I don't remember what I did) and now it doesn't show up in the PlayStore nor download to my Nexus 4, Nexus 5, nor Nexus 9. What about my target SDK or build gradle is causing this to happen? My account has no alerts and…
Martin Erlic
  • 5,467
  • 22
  • 81
  • 153
1
vote
2 answers

Which targetSDK to use for BLE?

I’m building an Android app which should run on every device with Bluetooth Low Energy, which means a minSDK of 18. I’m not sure as to which targetSDK I should use however. I read online that it is good practice to always use the latest version for…
Nimyz
  • 339
  • 2
  • 11
1
vote
2 answers

Not targeting the latest versions of Android targetSdkVersion="15"

I have this error: Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES JavaDoc for details. At line: android:targetSdkVersion="15"…
wiki
  • 299
  • 4
  • 16
1
vote
1 answer

Android: VerifyError: Expecting a stackmap frame at branch target 15

In an android project built with gradle and Java 7, when changing the targetSdkVersion from 19 to 21, the following exception is thrown when running robolectric tests : build.gradle: apply plugin: 'com.android.application' apply plugin:…
JohnRock
  • 6,795
  • 15
  • 52
  • 61
0
votes
0 answers

Dose android apps run slower on android-14 when select a low sdk version code during build?

I created two simple demo prj in Android Studio. I set one target SDK to 34 and the other one to 30. They executed the same code just to inflate a simple layout. But I found that the app in SDK 34 runs much faster(only took 1/10 inflating time) than…
0
votes
3 answers

This app isn’t available for your device because it was made from an older version of android

I have published app in playstore with minSdkVersion = 21 and targetSdkVersion = 33, one of my client Motorola Moto G31, with Android 11 device get below error in playstore "This app isn’t available for your device because it was made from an older…
mychar
  • 1,031
  • 1
  • 11
  • 20
0
votes
0 answers

Manifest merger failed when increasing targetSDK to 33

I have a multi-module Android project and I increased compile and target SDK to 33 in each module, but the problem occurs when increasing the target SDK in the app module. The error is the following:** android: exported needs to be explicitly…
0
votes
0 answers

Android. Is it possible to use Firebase Job dispatcher with targetSdk = 30?

In android developers I found that: If your app targets API level 30 or higher, Firebase JobDispatcher and GcmNetworkManager API calls are disabled on devices running Android 6.0 (API level 23) or higher. For migration information, see Migrating…
0
votes
1 answer

Android. What is by default value for exported of components which has IntentFilter in Android lower 12?

When apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. But when apps targeting 11 or lower and in Manifest for component no set exported…
testivanivan
  • 967
  • 13
  • 36
0
votes
0 answers

Internet Permisson with API Level 31

I have an app running successfully on Android for some time with targetSdkVersion 30 I'm compiling an update now with targetSdkVersion 31 as required by playstore. After changing targetSdkVersion INTERNET permission seems to be no longer…
0
votes
1 answer

Gson.toJson for java.io.File giving "{}" after migrating to API 31 Android 12

After updating the targetSdk to 31, gson.ToJson started giving empty results for List on android 12 device (vivo v2036). Tried passing TypeToken as well still remains the same. Funny thing is that its working fine on lower androids and on…
prem
  • 41
  • 5