Plugin overrides android minSdkVersion to 16
See original GitHub issueThis plugin causes cordova to disregard the minSdk version set in config.xml.
For example, if i have the following line in my config.xml:
<preference name="android-minSdkVersion" value="21" />
This plugin causes cordova to build my android app with version 16 as the target (and not 21 as i asked).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:12
- Comments:6
Top Results From Across the Web
uses-sdk:minSdkVersion 15 cannot be smaller than version ...
1) Go to Build.gradle(Module:app) . · 2) Change minSDKVersion 15 to minSDKVersion 16 . or 17 // 19(for projectfolder/platforms/android/CordovaLib/AndroidManifest ...
Read more ><uses-sdk> | Android Developers
Lets you express an application's compatibility with one or more versions of the Android platform, by means of an API Level integer.
Read more >Support Library Setup - Android Developers
If you are using Gradle build files, the minSdkVersion setting in the build file overrides the manifest settings. plugins { id 'com.android.application' }...
Read more >Manage manifest files - Android Developers
For example, the minSdkVersion from the build.gradle file overrides the matching attribute in the <uses-sdk> manifest element.
Read more >Past releases - Android Developers
The Android Studio build system is based on Gradle, and the Android Gradle plugin adds several features that are specific to building Android...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For quick fix, create build-extras.gradle with following def minSdkVersion = 21 cdvMinSdkVersion = minSdkVersion ext.cdvMinSdkVersion = minSdkVersion
Copy this file to /platforms/android/ folder. You can either do it manually or can write a hook
Here is a hook that fixes the problem:
Add to config.xml:
create file: cordova/scripts/afterAddBrowserTabPlugin.js