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
99
votes
5 answers

SYSTEM_ALERT_WINDOW - How to get this permission automatically on Android 6.0 and targetSdkVersion 23

Facebook, Evernote, Pocket - all apps get this permission on Android 6.0 automatically, even though they are targeting 23 (targetSdkVersion=23). There has been a lot of documentation regarding the new Marshmallow permission model. One of them is…
18
votes
1 answer

Dotnet build fails when project includes foreign language resources

I am using Visual Studio 15.6.3, dotnet SDK 2.1.102. Recently, (maybe after an update) I tracked down a dotnet build bug that is showing up to a project that includes foreign language resources. The error message is as follows: C:\Program…
Eric
  • 2,207
  • 2
  • 16
  • 16
12
votes
2 answers

Android - java.lang.IndexOutOfBoundsException: Invalid item position 0(0). Item count:0

I am getting this exception in my log - java.lang.IndexOutOfBoundsException: Invalid item position 0(0). Item count:0 at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4622) at…
6
votes
2 answers

Android Q emulator - Build.VERSION.SDK_INT returns 28

Build.VERSION.SDK_INT returns 28 instead of 29 when running on Android Q emulator. Is there anything I am missing? I am trying to add logic specifically for Android Q but I do not know how to determine this version correctly. app.gradle file…
user1159819
  • 1,549
  • 4
  • 16
  • 29
6
votes
1 answer

Android studio update compile sdk version

I an using android studio in Ubuntu. I want to update compile sdk version. Now I can select "API 23: Android 6.0 (Marshmallow)" as maximum version. Project Structure Window Now I want to Increase This. What should I update from SDK manager. I want…
salx32
  • 67
  • 1
  • 1
  • 5
5
votes
1 answer

App icon size on Android 8.0 if targetSdkVersion >= 26

My app has a square icon. When targetSdkVersion < 26 the app icon is shown correctly on all devices. But with targetSdkVersion >= 26 the app icon is shown inside a white circle on Android 8.0 devices. Is there a way to remove the white circle?
activity
  • 2,653
  • 3
  • 20
  • 44
4
votes
2 answers

Android Studio What is the difference between minSdkVersion, targetSdkVersion and minSdk, targetSdk?

I changed Target SDK Version from 30 to 31 and Min SDK Version from 19 to 22. In build.gradle, the minSdkVersion, targetSdkVersion and targetSdk change accordingly except for minSdk. It is still 19. android { compileSdk 31 defaultConfig { …
Irfan
  • 77
  • 1
  • 9
4
votes
2 answers

Android Studio shows methods from newer API

I have noticed that my Android Studio project is suggesting methods and types that are not available for use in my minimum SDK. I am using Android Studio version 1.1.0. I can see that my minimum SDK version is set correctly in the build.gradle…
rose
  • 327
  • 3
  • 10
3
votes
2 answers

This app was built for an older version of Android and doesn't include the latest privacy protections

Today I started to get this annoying message (when installing APK outside the Google Play): This app was built for an older version of Android and doesn't include the latest privacy protections What is this message? What should we do? I believe…
zvi
  • 3,677
  • 2
  • 30
  • 48
3
votes
2 answers

MY_PACKAGE_REPLACED stops working - How to find app upgrade android

I wanted to find the upgrade of my app. So i have been using this code to find it PACKAGE_REPLACED, but suddenly i could not receive event for package replacing of my app. And i changed to MY_PACKAGE_REPLACED. still same issue. Analysed some stack…
Happy
  • 1,031
  • 10
  • 26
3
votes
0 answers

React-native targetSDKVersion for Google Play Store Requirement

Google Play Store has announced that new apps target at least Android 9.0 (API level 28) starting August 1, 2019. Reference:https://developer.android.com/distribute/best-practices/develop/target-sdk I have updated my app targetSDKVersion to 28 in…
3
votes
1 answer

Should I change both the target SDK and compile SDK to support higher versions?

I would like my app to run on Android 9. Currently it both targets and compiles to SDK 26. When update my target and compile version from 26 to 28, nothing much seems to change. It runs the same on my own phone (22) and emulator at 25, but it also…
Miles Adamson
  • 357
  • 1
  • 3
  • 9
3
votes
3 answers

Can I run my app on API 23 if target SDK version I used is 21

I have developed an Android App having API 21 as target SDK version. Will it run fine on API above it, for example, API 23?
Abhishek Joshi
  • 361
  • 1
  • 7
  • 17
3
votes
3 answers

Permission issue on android lollipop device after upgarde

I have updated my device few days ago. Its an lollipop upgrade, but still it started asking permissions for my app at run time. I have targetSDK 21 But when I open app it pops up for gps permission and if user denied it, it stops working. I also…
3
votes
1 answer

Android 6.0 Preview 3 device (with target sdk 23) , System.loadLibrary is fail

(1) Build State * Target SDK : 23 (1-1) Build State - ADD * eclipse - indigo * ndk - android-ndk-r7c (2) Device State * device OS : Android 6.0 preview 3 OS , Android 6.0 * device name : Nexus 9 (3) code case 1 …
1
2 3 4 5