Questions tagged [android-min-sdk]

This tag represents the Android Minimum SDK used in an android application, and it is regularly defined in the application manifest.

91 questions
23
votes
1 answer

APK size increased 35mb when bumping min SDK from 21 to 24

Recently we bumped our min supported SDK from API 21 to 24. Apparently this change caused our APK size to increase from 65mb to 103mb. From the APK analysis in Android studio, we can see it's all of the .so files that have basically doubled in size.…
21
votes
4 answers

Where is the value of "flutter.minSdkVersion" in Flutter project initialized?

I have created a new Flutter project, and this is how the minSdkVersion looks like in the app/build.gradle file: defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). …
B Faley
  • 17,120
  • 43
  • 133
  • 223
18
votes
2 answers

How do I ignore minSdkVersion of library in Android Studio?

In my project minSdkVersion = 10, in the library it's 11. I get: BUILD_FAILED - Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version 11 declared in library. How to ignore minSdkVersion of library?
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
14
votes
5 answers

Use a specific minSdkVersion only in a Debug mode

How can I use a specific minSdkVersion only in a debug mode? I want to use the minSdkVersion 21 for debug mode, but minSdkVersion 15 for the release. I don't wanna use flavors for this because will give troubles. I think the could be like this (but…
Siloé Bezerra Bispo
  • 2,056
  • 1
  • 17
  • 31
13
votes
3 answers

How to specify the minSdkVersion in react native project

I have created react native project using create-react-native-app I can see that there is a sdkVersion property in app.json, but I want to specify minSdkVersion for the app. How do I specify the minSdkVersion in react native project?
Vivek
  • 11,938
  • 19
  • 92
  • 127
9
votes
1 answer

flutter AndroidManifest warning - current min is 1

AndroidManifest.xml file gives warnings - Attribute hardwareAccelerated is only used in API level 11 and higher(current min is 1) Attribute windowSoftInputMode is only used in API level 3 and higher(current min is 1) And Should set…
6
votes
2 answers

Changing minSdkVersion from 16 to 26 increased release APK size from 17 to 39 MB

I have a relatively small and simple application that has always generated a ~17 MB release APK file. Some time ago I noticed that the APK size increased to a whopping (for this app) 39 MB. I tracked down the change that caused it and it turns out…
wujek
  • 10,112
  • 12
  • 52
  • 88
6
votes
1 answer

Why does Android Studio lint not recognize my minSdkVersion

Android Studio (version 4.1.1) is displaying warnings in my xml layout files for views that use onClick (warning id: UsingOnClickInXml, older versions of the platform do not properly support resolving Android:onClick). These also show up in lint…
Ahnold
  • 157
  • 8
6
votes
2 answers

Android Studio build fail with minSDK=29

I have Android Studio build problem. Build fails only when changing the minSdk=29 with follwing error. ( It's OK with minSdk=28 ) android { compileSdkVersion 29 defaultConfig { applicationId "com.example.aaa" minSdkVersion…
teranian
  • 69
  • 1
  • 4
6
votes
2 answers

uses-sdk:minSdkVersion 7 cannot be smaller than version 9 declared in library

I am using Android Studio Version 1.2.2. My project's min sdk is 7 and I want to use google play service which requires min sdk 9 and above. So I use the below to overrideLibrary the library. Although I am getting the below error: Error:Execution…
Smeet
  • 4,036
  • 1
  • 36
  • 47
5
votes
1 answer

minSdkVersion 26 or later and just with mipmap-anydpi containing ic_launcher icons

I wonder, when my new project is minSdkVersion 26 (or later), that I can safely delete these mipmap-*dpi folders and their content ic_launcher icons, and then simply with mipmap-anydpi (renamed from mipmap-anydpi-v26) folder containing vector icons…
hata
  • 11,633
  • 6
  • 46
  • 69
5
votes
2 answers

What is the minimum SDK version should I choose? (as in Nov 2018)

As I am aware, default min SDK set in android studio is 15. I have read that I should increase it as there aren't many (or maybe none) who is still using that android version. Plus, I am planning to use some new features in android studio which only…
Ehsan Rosdi
  • 835
  • 9
  • 18
4
votes
1 answer

shouldInterceptRequest called twice for deprecated and non deprecated variant when using non deprecated

I have webView which overrides shouldInterceptRequest method: @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) @Override public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) { WebResourceResponse response =…
Jehy
  • 4,729
  • 1
  • 38
  • 55
4
votes
6 answers

Error while changing API level from 23 to 22

I want to change the minimum SDK version in Android Studio from API 23 to API 22 as HttpClient is not supported in API 23.I have tried changing it in build.gradle(Module:app) ie I have changed the compileSdkVersion from 23 to 22 and targetSdkVersion…
Nischal
  • 870
  • 1
  • 10
  • 16
1
2 3 4 5 6 7