Questions tagged [targetsdkversion]

83 questions
45
votes
23 answers

android:exported added but still getting error Apps targeting Android 12 and higher are required to specify an explicit value for android:exported

I have added android:exported="true" to my only activity in manifest but still getting below error after updating compile sdk and target sdk version to 31.I also tried rebuilding the project , invalidating cache and restart but that didn't…
32
votes
4 answers

Can't upload signed apk that targetSdkVersion is 30

I generated a signed apk with a target sdk version of 30. (Android 11). I know it wasn't officially released but my application is ready for the new changes. I am trying to upload it to the google play console but facing the error: You uploaded an…
Ofek Pintok
  • 613
  • 1
  • 6
  • 13
16
votes
5 answers

How to determine which minSDKVersion to set for my Android App

How can I determine the minimum API Level or Maximum API Level used in my project? And is there any way to determine which part of code in my project uses which API Level? Is there anyway in android studio to determine minimum API Level & maximum…
Gemma
  • 161
  • 1
  • 1
  • 5
12
votes
1 answer

Android Google Map SDK Toolbar issue -- not launching external map

The app has a Google Map built-in by using Maps SDK. Tapping one of the icons on the Map Toolbar should launch the external Maps app. The launching of the external Maps app had been working well until targetSDKVersion=29. When targetSDKVersion=30,…
autumnmaple
  • 201
  • 2
  • 9
10
votes
3 answers

How do I update minSdkVersion and targetSdkVersion in the new version of flutter 2.8.0

On file build.gradle I found code like this minSdkVersion flutter.minSdkVersion targetSdkVersion flutter.targetSdkVersion How can I change the values from where they are initialized ? 1
rachidev
  • 101
  • 1
  • 1
  • 3
8
votes
1 answer

ActivityCompat.requestPermissions for targetSdkVersion 30 is not working

I have following permissions: private static final String[] LOCATION_PERMISSIONS = { Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_BACKGROUND_LOCATION, …
Vitaly
  • 334
  • 4
  • 14
7
votes
1 answer

Delphi - New apps on Google Play must target Android 8 (API level 26) - PUSH notification in background

From August 2018, all new apps on Google Play must target Android 8 (API level 26) or higher, and from November 2018, all app updates on Google Play must of the same apps on Google Play. Right now the only way you have to upload a new App that…
Juan M
  • 71
  • 4
6
votes
4 answers

Behavior in Android when library and app are built with different targetSdkVersion

I am the author of a library for use in Android applications. Currently checking how my library behaves with Android 14 (API 34). Now, API 34 removes several existing methods. For example, the method android.webkit.WebSettings#setAppCacheEnabled has…
Peri
  • 253
  • 1
  • 2
  • 12
6
votes
0 answers

Android 12: As of targetSdkVersion 31, the toast messages are clipped

Recently my smartphone (Google Pixel 3) got an update from Android 11 to 12. Afterwards, I wanted to adapt my app Sensor Recording accordingly. So I made some changes in "build.gradle": compileSdkVersion 31 // 30 before defaultConfig { …
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
5
votes
4 answers

error: duplicate value for resource 'attr/actionBarSize' with config ''

I'm porting my current android apk to meet recent playstore directive - " targetSdkVersion 26" This my gradle file. I started off with compileSdkVersion 26 and ended up at 28. So for 28 I had to use AndroidX dependencies. Im stuck at the error as…
Indark
  • 322
  • 1
  • 2
  • 14
4
votes
1 answer

AdvancedWebView (delight-im/Android-AdvancedWebView) stops showing web pages if I set targetSdkVersion 28

I'm using this WebView extension: https://github.com/delight-im/Android-AdvancedWebView Google Play Console is requesting a targetSdkVersion 28 for future pubblications. I tryed to update my project but the component stop showing web pages. If I set…
Seraphim's
  • 12,559
  • 20
  • 88
  • 129
4
votes
2 answers

React-native app crashes on real android device

I am using react-native and currently started using redux and created one app but when I am running that app on the emulator it is working fine. Then I connected my mobile with android 6 through USB on that also it is working. But in other devices…
3
votes
0 answers

After upgrading target sdk version to 33(android 13), Flutter app is installing but not launching automatically

I have changed targetSdkVersion and compileSdkVersion to 33,and minSdkVersion is 23 in build.gradle file and in AndroidManifest.xml, updated permissions like this When I do flutter run, App is installing in emulator(api level 33) and apk also…
3
votes
0 answers

Issue while building the project after updating targetSDKVersion to 31. shows :app:compileDebugJavaWithJavac Failed

Once after updating targetSDKVersion to 31, found out that JavaVersion should be updated from 1.8 to 11. That leads to another issue, and says to revert back to 1.8 as below Execution failed for task ':app:compileDebugJavaWithJavac'. > Could not…
Cyril David
  • 465
  • 1
  • 4
  • 11
1
2 3 4 5 6