uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in libraryCordova Build minSdkVersion change 16 to 19Ionic cordova compile for android giving error on minSdkVersion smaller than version declaredsdk:minSdkVersion 15 cannot be different than version L declared in libraryuses-sdk:minSdkVersion 7 cannot be smaller than version 9 declared in libraryError retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library [com.google.android.gms:play-services:7.8.0]minSdkVersion 8 cannot be smaller than version 9 declared in library - post AdMobManifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in libraryManifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 14 declared in libraryManifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 19 declared in library [:wikitudesdk:]minSdkVersion 9 cannot be smaller than version 14 declared in libraryManifest merger failed, minSdkVersion 1 cannot be smaller than version 4 declared in library
Why didn't Project Mercury advance to an orbital flight on their second mission?
Why aren't space telescopes put in GEO?
Why did the Dothraki not follow Jon?
Why didn't Thanos use the Time Stone to stop the Avengers' plan?
Did 20% of US soldiers in Vietnam use heroin, 95% of whom quit afterwards?
USPS Back Room - Trespassing?
Is it true that cut time means "play twice as fast as written"?
Can I tell a prospective employee that everyone in the team is leaving?
Popcorn is the only acceptable snack to consume while watching a movie
Is the field of q-series 'dead'?
Compaq Portable vs IBM 5155 Portable PC
How to patch glass cuts in a bicycle tire?
NIntegrate doesn't evaluate
What to do when you've set the wrong ISO for your film?
Where is the logic in castrating fighters?
Need to understand my home electrical meter to see why bill is so high and/or if neighbor is on same meter
Why does Mjolnir fall down in Age of Ultron but not in Endgame?
In general, would I need to season a meat when making a sauce?
Is it rude to call a professor by their last name with no prefix in a non-academic setting?
How to deal with a colleague who is being aggressive?
Employer asking for online access to bank account - Is this a scam?
Count Even Digits In Number
Using credit/debit card details vs swiping a card in a payment (credit card) terminal
How to respond to an upset student?
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library
Cordova Build minSdkVersion change 16 to 19Ionic cordova compile for android giving error on minSdkVersion smaller than version declaredsdk:minSdkVersion 15 cannot be different than version L declared in libraryuses-sdk:minSdkVersion 7 cannot be smaller than version 9 declared in libraryError retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library [com.google.android.gms:play-services:7.8.0]minSdkVersion 8 cannot be smaller than version 9 declared in library - post AdMobManifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in libraryManifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 14 declared in libraryManifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 19 declared in library [:wikitudesdk:]minSdkVersion 9 cannot be smaller than version 14 declared in libraryManifest merger failed, minSdkVersion 1 cannot be smaller than version 4 declared in library
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I don't understand this error message
C:Program Files (x86)Jenkinsworkspace__temp-mobile-prevplatformsandroidAndroidManifest.xml:67:5 Error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library C:Program Files (x86)Jenkinsworkspace__temp-mobile-prevplatformsandroidbuildintermediatesexploded-aarcom.paypal.sdkpaypal-android-sdk2.14.2AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.paypal.android.sdk.payments" to force usage
Because line 67 of AndroidManifest.xml looks like:
<uses-sdk android:minSdkVersion="18" android:targetSdkVersion="22" />
Where does 15 come from?
I use ionic to build my app. But I don't think that this is the problem.
add a comment |
I don't understand this error message
C:Program Files (x86)Jenkinsworkspace__temp-mobile-prevplatformsandroidAndroidManifest.xml:67:5 Error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library C:Program Files (x86)Jenkinsworkspace__temp-mobile-prevplatformsandroidbuildintermediatesexploded-aarcom.paypal.sdkpaypal-android-sdk2.14.2AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.paypal.android.sdk.payments" to force usage
Because line 67 of AndroidManifest.xml looks like:
<uses-sdk android:minSdkVersion="18" android:targetSdkVersion="22" />
Where does 15 come from?
I use ionic to build my app. But I don't think that this is the problem.
minSdkVersion __ targetSdkVersion __andcompileSdkVersion __in Build.gradle(Module: app)
– Vishwesh Jainkuniya
May 18 '16 at 7:42
Do you use external libraries?
– Yoann Hercouet
May 18 '16 at 8:07
@YoannHercouet I just use the ionic framework. I don't know if they use external libraries. Maybe the ionic plugins are external libraries. The error occurs because the paypal plugin expect a minimum sdk version of 16
– Simon Schüpbach
May 18 '16 at 8:10
add a comment |
I don't understand this error message
C:Program Files (x86)Jenkinsworkspace__temp-mobile-prevplatformsandroidAndroidManifest.xml:67:5 Error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library C:Program Files (x86)Jenkinsworkspace__temp-mobile-prevplatformsandroidbuildintermediatesexploded-aarcom.paypal.sdkpaypal-android-sdk2.14.2AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.paypal.android.sdk.payments" to force usage
Because line 67 of AndroidManifest.xml looks like:
<uses-sdk android:minSdkVersion="18" android:targetSdkVersion="22" />
Where does 15 come from?
I use ionic to build my app. But I don't think that this is the problem.
I don't understand this error message
C:Program Files (x86)Jenkinsworkspace__temp-mobile-prevplatformsandroidAndroidManifest.xml:67:5 Error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library C:Program Files (x86)Jenkinsworkspace__temp-mobile-prevplatformsandroidbuildintermediatesexploded-aarcom.paypal.sdkpaypal-android-sdk2.14.2AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.paypal.android.sdk.payments" to force usage
Because line 67 of AndroidManifest.xml looks like:
<uses-sdk android:minSdkVersion="18" android:targetSdkVersion="22" />
Where does 15 come from?
I use ionic to build my app. But I don't think that this is the problem.
edited May 18 '16 at 11:50
Simon Schüpbach
asked May 18 '16 at 7:36
Simon SchüpbachSimon Schüpbach
1,8792624
1,8792624
minSdkVersion __ targetSdkVersion __andcompileSdkVersion __in Build.gradle(Module: app)
– Vishwesh Jainkuniya
May 18 '16 at 7:42
Do you use external libraries?
– Yoann Hercouet
May 18 '16 at 8:07
@YoannHercouet I just use the ionic framework. I don't know if they use external libraries. Maybe the ionic plugins are external libraries. The error occurs because the paypal plugin expect a minimum sdk version of 16
– Simon Schüpbach
May 18 '16 at 8:10
add a comment |
minSdkVersion __ targetSdkVersion __andcompileSdkVersion __in Build.gradle(Module: app)
– Vishwesh Jainkuniya
May 18 '16 at 7:42
Do you use external libraries?
– Yoann Hercouet
May 18 '16 at 8:07
@YoannHercouet I just use the ionic framework. I don't know if they use external libraries. Maybe the ionic plugins are external libraries. The error occurs because the paypal plugin expect a minimum sdk version of 16
– Simon Schüpbach
May 18 '16 at 8:10
minSdkVersion __ targetSdkVersion __ and compileSdkVersion __ in Build.gradle(Module: app)– Vishwesh Jainkuniya
May 18 '16 at 7:42
minSdkVersion __ targetSdkVersion __ and compileSdkVersion __ in Build.gradle(Module: app)– Vishwesh Jainkuniya
May 18 '16 at 7:42
Do you use external libraries?
– Yoann Hercouet
May 18 '16 at 8:07
Do you use external libraries?
– Yoann Hercouet
May 18 '16 at 8:07
@YoannHercouet I just use the ionic framework. I don't know if they use external libraries. Maybe the ionic plugins are external libraries. The error occurs because the paypal plugin expect a minimum sdk version of 16
– Simon Schüpbach
May 18 '16 at 8:10
@YoannHercouet I just use the ionic framework. I don't know if they use external libraries. Maybe the ionic plugins are external libraries. The error occurs because the paypal plugin expect a minimum sdk version of 16
– Simon Schüpbach
May 18 '16 at 8:10
add a comment |
11 Answers
11
active
oldest
votes
Maybe I found the problem.
I don't want to overwride the build.gradle, because cordova create this file dynamically. But I searched why that cdvMinSdkVersion returns a wrong value. And the reason was this barcodescanner-plugin. The plugin gradle file has this line
ext.cdvMinSdkVersion = 15
which overwrite my value from AndroidManifest.xml. After I have remove and add the plugin again it works.
But I don't know why? Maybe someone could explain the order of the different gradle scripts.
You sir, deserve a beer!!
– Aswin Ramakrishnan
Sep 15 '16 at 2:40
This solved my problem, great job!
– JoeriShoeby
Oct 4 '16 at 8:50
Make it 3 beers. I can confirm this fix to work. I'm working on Cordova 6.2.0, and it did the trick!
– tfrascaroli
Jan 12 '17 at 13:50
1
And another beer ;) Thx
– Thomas
Feb 13 '17 at 8:09
1
I don't exactly understand what you are saying but I did a grep on that line of code and it was within a Mapbox plugin which I removed and then the build was successful .. Crazy stuff but another beer from here
– Peter Scott
Feb 15 '17 at 17:11
|
show 2 more comments
As of release 2.14.0, the minSdkVersion has been increased to 16. If you prefer to have your app on a lower minSdkVersion and want to leverage the latest SDK, please disable PayPal for versions below API 16, add xmlns:tools="http://schemas.android.com/tools inside the manifest's xml declaration, and add the following snippet to your AndroidManifest.xml:
<uses-sdk android:minSdkVersion="INSERT_YOUR_DESIRED_minSdkVersion_HERE" tools:overrideLibrary="com.paypal.android.sdk.payments"/>
add a comment |
In case of Hybrid/Ionic app such issue could get fixed by changing minSdkVersion in config.xml is what I did.
add a comment |
The problem for me was in cordova-plugin-browsertab.
You need to change line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to
def minSdkVersion = 19
Make sure you have the minimum SDK added to your config.xml
<preference name="android-minSdkVersion" value="19" />
Then remove and add cordova-android by:
cordova platform remove android
cordova platform add android
It's the same place which cause error in my project. But define <preference name="android-minSdkVersion" value="19" /> in config.xml doesn't help. I have modify the line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to: def minSdkVersion = 19 and then reinstall android platform.
– D C
Mar 22 at 8:57
add a comment |
Here are some context to understand the things:
By default, when importing a library with a minSdkVersion value that's higher than the main manifest file, an error occurs and the library cannot be imported. To make the merger tool ignore this conflict and import the library while keeping your app's lower minSdkVersion value, add the overrideLibrary attribute to the tag. The attribute value can be one or more library package names (comma-separated), indicating the libraries that can override the main manifest's minSdkVersion.
For example, if your app's main manifest applies overrideLibrary like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk android:targetSdkVersion="22" android:minSdkVersion="2"
tools:overrideLibrary="com.example.lib1, com.example.lib2"/>
Then the following manifest can be merged without an error regarding the <uses-sdk> tag, and the merged manifest keeps minSdkVersion="2" from the app manifest.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lib1">
<uses-sdk android:minSdkVersion="4" />
add a comment |
This solved my problem.
Right click on app folder in android studio, select 'open module settings' | or just press F4. Go to Flavors Tab and change Min Sdk Version to the latest.
Problem Solved.
This solved my problem as well.
– anthony stoico
Sep 6 '18 at 15:26
add a comment |
I use @Naga suggestion, and it's work.
config.xml that I change is not in the root of project, but inplatforms/android/app/src/main/res/xml/config.xml
and minSdkVersion in AndroidManifests.xml are not overwritten again
When I generate app using cordova build android it automatically overrides the value.
– Santosh
Sep 19 '18 at 20:43
add a comment |
work like a charm:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.aspireone.myapplication"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk android:targetSdkVersion="28" android:minSdkVersion="14"
tools:overrideLibrary="com.allyants.draggabletreeview"/>
from this error message:
<!-- Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library [com.github.jakebonk:DraggableTreeView:1.0.1] C:UsersASPIREone.gradlecachestransforms-1files-1.1DraggableTreeView-1.0.1.aar45f4095d2e68f3e9a1fbc4b73c7f9c33AndroidManifest.xml as the library might be using APIs not available in 14
Suggestion: use a compatible library with a minSdk of at most 14,
or increase this project's minSdk version to at least 15,
or use tools:overrideLibrary="com.allyants.draggabletreeview" to force usage (may lead to runtime failures) -->
add a comment |
Try this instead.
Change minSdkVersion 15 to minSdkVersion 16 in build.gradle(module: app)
add a comment |
The way I fixed it was to go to platformsandroid folder and did a find-in-folder from my VS code editor for minSdkVersion and replaced all minSdkVersion=16 to minSdkVersion=19 regardless of whether cordova generated it dynamically or not. Everything worked fine for me after that.
add a comment |
Please Follow these three steps to solve this error in ionic 3
1) projectfolder/platforms/android/CordovaLib/AndroidManifest.xml
<uses-sdk android:minSdkVersion="16" /> change this to
<uses-sdk android:minSdkVersion="19" />
2) projectfolder/platforms/android/gradle.properties
cdvMinSdkVersion=16 or X change to
cdvMinSdkVersion=19
3) projectfolder/config.xml
<preference name="android-minSdkVersion" value="16" /> change to
`
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37293082%2fuses-sdkminsdkversion-15-cannot-be-smaller-than-version-16-declared-in-library%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
11 Answers
11
active
oldest
votes
11 Answers
11
active
oldest
votes
active
oldest
votes
active
oldest
votes
Maybe I found the problem.
I don't want to overwride the build.gradle, because cordova create this file dynamically. But I searched why that cdvMinSdkVersion returns a wrong value. And the reason was this barcodescanner-plugin. The plugin gradle file has this line
ext.cdvMinSdkVersion = 15
which overwrite my value from AndroidManifest.xml. After I have remove and add the plugin again it works.
But I don't know why? Maybe someone could explain the order of the different gradle scripts.
You sir, deserve a beer!!
– Aswin Ramakrishnan
Sep 15 '16 at 2:40
This solved my problem, great job!
– JoeriShoeby
Oct 4 '16 at 8:50
Make it 3 beers. I can confirm this fix to work. I'm working on Cordova 6.2.0, and it did the trick!
– tfrascaroli
Jan 12 '17 at 13:50
1
And another beer ;) Thx
– Thomas
Feb 13 '17 at 8:09
1
I don't exactly understand what you are saying but I did a grep on that line of code and it was within a Mapbox plugin which I removed and then the build was successful .. Crazy stuff but another beer from here
– Peter Scott
Feb 15 '17 at 17:11
|
show 2 more comments
Maybe I found the problem.
I don't want to overwride the build.gradle, because cordova create this file dynamically. But I searched why that cdvMinSdkVersion returns a wrong value. And the reason was this barcodescanner-plugin. The plugin gradle file has this line
ext.cdvMinSdkVersion = 15
which overwrite my value from AndroidManifest.xml. After I have remove and add the plugin again it works.
But I don't know why? Maybe someone could explain the order of the different gradle scripts.
You sir, deserve a beer!!
– Aswin Ramakrishnan
Sep 15 '16 at 2:40
This solved my problem, great job!
– JoeriShoeby
Oct 4 '16 at 8:50
Make it 3 beers. I can confirm this fix to work. I'm working on Cordova 6.2.0, and it did the trick!
– tfrascaroli
Jan 12 '17 at 13:50
1
And another beer ;) Thx
– Thomas
Feb 13 '17 at 8:09
1
I don't exactly understand what you are saying but I did a grep on that line of code and it was within a Mapbox plugin which I removed and then the build was successful .. Crazy stuff but another beer from here
– Peter Scott
Feb 15 '17 at 17:11
|
show 2 more comments
Maybe I found the problem.
I don't want to overwride the build.gradle, because cordova create this file dynamically. But I searched why that cdvMinSdkVersion returns a wrong value. And the reason was this barcodescanner-plugin. The plugin gradle file has this line
ext.cdvMinSdkVersion = 15
which overwrite my value from AndroidManifest.xml. After I have remove and add the plugin again it works.
But I don't know why? Maybe someone could explain the order of the different gradle scripts.
Maybe I found the problem.
I don't want to overwride the build.gradle, because cordova create this file dynamically. But I searched why that cdvMinSdkVersion returns a wrong value. And the reason was this barcodescanner-plugin. The plugin gradle file has this line
ext.cdvMinSdkVersion = 15
which overwrite my value from AndroidManifest.xml. After I have remove and add the plugin again it works.
But I don't know why? Maybe someone could explain the order of the different gradle scripts.
answered May 19 '16 at 6:22
Simon SchüpbachSimon Schüpbach
1,8792624
1,8792624
You sir, deserve a beer!!
– Aswin Ramakrishnan
Sep 15 '16 at 2:40
This solved my problem, great job!
– JoeriShoeby
Oct 4 '16 at 8:50
Make it 3 beers. I can confirm this fix to work. I'm working on Cordova 6.2.0, and it did the trick!
– tfrascaroli
Jan 12 '17 at 13:50
1
And another beer ;) Thx
– Thomas
Feb 13 '17 at 8:09
1
I don't exactly understand what you are saying but I did a grep on that line of code and it was within a Mapbox plugin which I removed and then the build was successful .. Crazy stuff but another beer from here
– Peter Scott
Feb 15 '17 at 17:11
|
show 2 more comments
You sir, deserve a beer!!
– Aswin Ramakrishnan
Sep 15 '16 at 2:40
This solved my problem, great job!
– JoeriShoeby
Oct 4 '16 at 8:50
Make it 3 beers. I can confirm this fix to work. I'm working on Cordova 6.2.0, and it did the trick!
– tfrascaroli
Jan 12 '17 at 13:50
1
And another beer ;) Thx
– Thomas
Feb 13 '17 at 8:09
1
I don't exactly understand what you are saying but I did a grep on that line of code and it was within a Mapbox plugin which I removed and then the build was successful .. Crazy stuff but another beer from here
– Peter Scott
Feb 15 '17 at 17:11
You sir, deserve a beer!!
– Aswin Ramakrishnan
Sep 15 '16 at 2:40
You sir, deserve a beer!!
– Aswin Ramakrishnan
Sep 15 '16 at 2:40
This solved my problem, great job!
– JoeriShoeby
Oct 4 '16 at 8:50
This solved my problem, great job!
– JoeriShoeby
Oct 4 '16 at 8:50
Make it 3 beers. I can confirm this fix to work. I'm working on Cordova 6.2.0, and it did the trick!
– tfrascaroli
Jan 12 '17 at 13:50
Make it 3 beers. I can confirm this fix to work. I'm working on Cordova 6.2.0, and it did the trick!
– tfrascaroli
Jan 12 '17 at 13:50
1
1
And another beer ;) Thx
– Thomas
Feb 13 '17 at 8:09
And another beer ;) Thx
– Thomas
Feb 13 '17 at 8:09
1
1
I don't exactly understand what you are saying but I did a grep on that line of code and it was within a Mapbox plugin which I removed and then the build was successful .. Crazy stuff but another beer from here
– Peter Scott
Feb 15 '17 at 17:11
I don't exactly understand what you are saying but I did a grep on that line of code and it was within a Mapbox plugin which I removed and then the build was successful .. Crazy stuff but another beer from here
– Peter Scott
Feb 15 '17 at 17:11
|
show 2 more comments
As of release 2.14.0, the minSdkVersion has been increased to 16. If you prefer to have your app on a lower minSdkVersion and want to leverage the latest SDK, please disable PayPal for versions below API 16, add xmlns:tools="http://schemas.android.com/tools inside the manifest's xml declaration, and add the following snippet to your AndroidManifest.xml:
<uses-sdk android:minSdkVersion="INSERT_YOUR_DESIRED_minSdkVersion_HERE" tools:overrideLibrary="com.paypal.android.sdk.payments"/>
add a comment |
As of release 2.14.0, the minSdkVersion has been increased to 16. If you prefer to have your app on a lower minSdkVersion and want to leverage the latest SDK, please disable PayPal for versions below API 16, add xmlns:tools="http://schemas.android.com/tools inside the manifest's xml declaration, and add the following snippet to your AndroidManifest.xml:
<uses-sdk android:minSdkVersion="INSERT_YOUR_DESIRED_minSdkVersion_HERE" tools:overrideLibrary="com.paypal.android.sdk.payments"/>
add a comment |
As of release 2.14.0, the minSdkVersion has been increased to 16. If you prefer to have your app on a lower minSdkVersion and want to leverage the latest SDK, please disable PayPal for versions below API 16, add xmlns:tools="http://schemas.android.com/tools inside the manifest's xml declaration, and add the following snippet to your AndroidManifest.xml:
<uses-sdk android:minSdkVersion="INSERT_YOUR_DESIRED_minSdkVersion_HERE" tools:overrideLibrary="com.paypal.android.sdk.payments"/>
As of release 2.14.0, the minSdkVersion has been increased to 16. If you prefer to have your app on a lower minSdkVersion and want to leverage the latest SDK, please disable PayPal for versions below API 16, add xmlns:tools="http://schemas.android.com/tools inside the manifest's xml declaration, and add the following snippet to your AndroidManifest.xml:
<uses-sdk android:minSdkVersion="INSERT_YOUR_DESIRED_minSdkVersion_HERE" tools:overrideLibrary="com.paypal.android.sdk.payments"/>
answered Sep 2 '16 at 16:02
user6738679
add a comment |
add a comment |
In case of Hybrid/Ionic app such issue could get fixed by changing minSdkVersion in config.xml is what I did.
add a comment |
In case of Hybrid/Ionic app such issue could get fixed by changing minSdkVersion in config.xml is what I did.
add a comment |
In case of Hybrid/Ionic app such issue could get fixed by changing minSdkVersion in config.xml is what I did.
In case of Hybrid/Ionic app such issue could get fixed by changing minSdkVersion in config.xml is what I did.
answered Mar 27 '18 at 7:41
NagaNaga
98411225
98411225
add a comment |
add a comment |
The problem for me was in cordova-plugin-browsertab.
You need to change line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to
def minSdkVersion = 19
Make sure you have the minimum SDK added to your config.xml
<preference name="android-minSdkVersion" value="19" />
Then remove and add cordova-android by:
cordova platform remove android
cordova platform add android
It's the same place which cause error in my project. But define <preference name="android-minSdkVersion" value="19" /> in config.xml doesn't help. I have modify the line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to: def minSdkVersion = 19 and then reinstall android platform.
– D C
Mar 22 at 8:57
add a comment |
The problem for me was in cordova-plugin-browsertab.
You need to change line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to
def minSdkVersion = 19
Make sure you have the minimum SDK added to your config.xml
<preference name="android-minSdkVersion" value="19" />
Then remove and add cordova-android by:
cordova platform remove android
cordova platform add android
It's the same place which cause error in my project. But define <preference name="android-minSdkVersion" value="19" /> in config.xml doesn't help. I have modify the line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to: def minSdkVersion = 19 and then reinstall android platform.
– D C
Mar 22 at 8:57
add a comment |
The problem for me was in cordova-plugin-browsertab.
You need to change line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to
def minSdkVersion = 19
Make sure you have the minimum SDK added to your config.xml
<preference name="android-minSdkVersion" value="19" />
Then remove and add cordova-android by:
cordova platform remove android
cordova platform add android
The problem for me was in cordova-plugin-browsertab.
You need to change line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to
def minSdkVersion = 19
Make sure you have the minimum SDK added to your config.xml
<preference name="android-minSdkVersion" value="19" />
Then remove and add cordova-android by:
cordova platform remove android
cordova platform add android
answered Feb 13 at 11:10
Chris UnderdownChris Underdown
27124
27124
It's the same place which cause error in my project. But define <preference name="android-minSdkVersion" value="19" /> in config.xml doesn't help. I have modify the line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to: def minSdkVersion = 19 and then reinstall android platform.
– D C
Mar 22 at 8:57
add a comment |
It's the same place which cause error in my project. But define <preference name="android-minSdkVersion" value="19" /> in config.xml doesn't help. I have modify the line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to: def minSdkVersion = 19 and then reinstall android platform.
– D C
Mar 22 at 8:57
It's the same place which cause error in my project. But define <preference name="android-minSdkVersion" value="19" /> in config.xml doesn't help. I have modify the line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to: def minSdkVersion = 19 and then reinstall android platform.
– D C
Mar 22 at 8:57
It's the same place which cause error in my project. But define <preference name="android-minSdkVersion" value="19" /> in config.xml doesn't help. I have modify the line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to: def minSdkVersion = 19 and then reinstall android platform.
– D C
Mar 22 at 8:57
add a comment |
Here are some context to understand the things:
By default, when importing a library with a minSdkVersion value that's higher than the main manifest file, an error occurs and the library cannot be imported. To make the merger tool ignore this conflict and import the library while keeping your app's lower minSdkVersion value, add the overrideLibrary attribute to the tag. The attribute value can be one or more library package names (comma-separated), indicating the libraries that can override the main manifest's minSdkVersion.
For example, if your app's main manifest applies overrideLibrary like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk android:targetSdkVersion="22" android:minSdkVersion="2"
tools:overrideLibrary="com.example.lib1, com.example.lib2"/>
Then the following manifest can be merged without an error regarding the <uses-sdk> tag, and the merged manifest keeps minSdkVersion="2" from the app manifest.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lib1">
<uses-sdk android:minSdkVersion="4" />
add a comment |
Here are some context to understand the things:
By default, when importing a library with a minSdkVersion value that's higher than the main manifest file, an error occurs and the library cannot be imported. To make the merger tool ignore this conflict and import the library while keeping your app's lower minSdkVersion value, add the overrideLibrary attribute to the tag. The attribute value can be one or more library package names (comma-separated), indicating the libraries that can override the main manifest's minSdkVersion.
For example, if your app's main manifest applies overrideLibrary like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk android:targetSdkVersion="22" android:minSdkVersion="2"
tools:overrideLibrary="com.example.lib1, com.example.lib2"/>
Then the following manifest can be merged without an error regarding the <uses-sdk> tag, and the merged manifest keeps minSdkVersion="2" from the app manifest.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lib1">
<uses-sdk android:minSdkVersion="4" />
add a comment |
Here are some context to understand the things:
By default, when importing a library with a minSdkVersion value that's higher than the main manifest file, an error occurs and the library cannot be imported. To make the merger tool ignore this conflict and import the library while keeping your app's lower minSdkVersion value, add the overrideLibrary attribute to the tag. The attribute value can be one or more library package names (comma-separated), indicating the libraries that can override the main manifest's minSdkVersion.
For example, if your app's main manifest applies overrideLibrary like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk android:targetSdkVersion="22" android:minSdkVersion="2"
tools:overrideLibrary="com.example.lib1, com.example.lib2"/>
Then the following manifest can be merged without an error regarding the <uses-sdk> tag, and the merged manifest keeps minSdkVersion="2" from the app manifest.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lib1">
<uses-sdk android:minSdkVersion="4" />
Here are some context to understand the things:
By default, when importing a library with a minSdkVersion value that's higher than the main manifest file, an error occurs and the library cannot be imported. To make the merger tool ignore this conflict and import the library while keeping your app's lower minSdkVersion value, add the overrideLibrary attribute to the tag. The attribute value can be one or more library package names (comma-separated), indicating the libraries that can override the main manifest's minSdkVersion.
For example, if your app's main manifest applies overrideLibrary like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk android:targetSdkVersion="22" android:minSdkVersion="2"
tools:overrideLibrary="com.example.lib1, com.example.lib2"/>
Then the following manifest can be merged without an error regarding the <uses-sdk> tag, and the merged manifest keeps minSdkVersion="2" from the app manifest.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lib1">
<uses-sdk android:minSdkVersion="4" />
answered Jan 17 '18 at 10:40
0xAliHn0xAliHn
8,731125077
8,731125077
add a comment |
add a comment |
This solved my problem.
Right click on app folder in android studio, select 'open module settings' | or just press F4. Go to Flavors Tab and change Min Sdk Version to the latest.
Problem Solved.
This solved my problem as well.
– anthony stoico
Sep 6 '18 at 15:26
add a comment |
This solved my problem.
Right click on app folder in android studio, select 'open module settings' | or just press F4. Go to Flavors Tab and change Min Sdk Version to the latest.
Problem Solved.
This solved my problem as well.
– anthony stoico
Sep 6 '18 at 15:26
add a comment |
This solved my problem.
Right click on app folder in android studio, select 'open module settings' | or just press F4. Go to Flavors Tab and change Min Sdk Version to the latest.
Problem Solved.
This solved my problem.
Right click on app folder in android studio, select 'open module settings' | or just press F4. Go to Flavors Tab and change Min Sdk Version to the latest.
Problem Solved.
answered Jul 4 '18 at 14:12
The Online ExplorerThe Online Explorer
213
213
This solved my problem as well.
– anthony stoico
Sep 6 '18 at 15:26
add a comment |
This solved my problem as well.
– anthony stoico
Sep 6 '18 at 15:26
This solved my problem as well.
– anthony stoico
Sep 6 '18 at 15:26
This solved my problem as well.
– anthony stoico
Sep 6 '18 at 15:26
add a comment |
I use @Naga suggestion, and it's work.
config.xml that I change is not in the root of project, but inplatforms/android/app/src/main/res/xml/config.xml
and minSdkVersion in AndroidManifests.xml are not overwritten again
When I generate app using cordova build android it automatically overrides the value.
– Santosh
Sep 19 '18 at 20:43
add a comment |
I use @Naga suggestion, and it's work.
config.xml that I change is not in the root of project, but inplatforms/android/app/src/main/res/xml/config.xml
and minSdkVersion in AndroidManifests.xml are not overwritten again
When I generate app using cordova build android it automatically overrides the value.
– Santosh
Sep 19 '18 at 20:43
add a comment |
I use @Naga suggestion, and it's work.
config.xml that I change is not in the root of project, but inplatforms/android/app/src/main/res/xml/config.xml
and minSdkVersion in AndroidManifests.xml are not overwritten again
I use @Naga suggestion, and it's work.
config.xml that I change is not in the root of project, but inplatforms/android/app/src/main/res/xml/config.xml
and minSdkVersion in AndroidManifests.xml are not overwritten again
answered Jul 30 '18 at 3:48
Imam SutonoImam Sutono
1
1
When I generate app using cordova build android it automatically overrides the value.
– Santosh
Sep 19 '18 at 20:43
add a comment |
When I generate app using cordova build android it automatically overrides the value.
– Santosh
Sep 19 '18 at 20:43
When I generate app using cordova build android it automatically overrides the value.
– Santosh
Sep 19 '18 at 20:43
When I generate app using cordova build android it automatically overrides the value.
– Santosh
Sep 19 '18 at 20:43
add a comment |
work like a charm:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.aspireone.myapplication"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk android:targetSdkVersion="28" android:minSdkVersion="14"
tools:overrideLibrary="com.allyants.draggabletreeview"/>
from this error message:
<!-- Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library [com.github.jakebonk:DraggableTreeView:1.0.1] C:UsersASPIREone.gradlecachestransforms-1files-1.1DraggableTreeView-1.0.1.aar45f4095d2e68f3e9a1fbc4b73c7f9c33AndroidManifest.xml as the library might be using APIs not available in 14
Suggestion: use a compatible library with a minSdk of at most 14,
or increase this project's minSdk version to at least 15,
or use tools:overrideLibrary="com.allyants.draggabletreeview" to force usage (may lead to runtime failures) -->
add a comment |
work like a charm:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.aspireone.myapplication"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk android:targetSdkVersion="28" android:minSdkVersion="14"
tools:overrideLibrary="com.allyants.draggabletreeview"/>
from this error message:
<!-- Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library [com.github.jakebonk:DraggableTreeView:1.0.1] C:UsersASPIREone.gradlecachestransforms-1files-1.1DraggableTreeView-1.0.1.aar45f4095d2e68f3e9a1fbc4b73c7f9c33AndroidManifest.xml as the library might be using APIs not available in 14
Suggestion: use a compatible library with a minSdk of at most 14,
or increase this project's minSdk version to at least 15,
or use tools:overrideLibrary="com.allyants.draggabletreeview" to force usage (may lead to runtime failures) -->
add a comment |
work like a charm:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.aspireone.myapplication"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk android:targetSdkVersion="28" android:minSdkVersion="14"
tools:overrideLibrary="com.allyants.draggabletreeview"/>
from this error message:
<!-- Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library [com.github.jakebonk:DraggableTreeView:1.0.1] C:UsersASPIREone.gradlecachestransforms-1files-1.1DraggableTreeView-1.0.1.aar45f4095d2e68f3e9a1fbc4b73c7f9c33AndroidManifest.xml as the library might be using APIs not available in 14
Suggestion: use a compatible library with a minSdk of at most 14,
or increase this project's minSdk version to at least 15,
or use tools:overrideLibrary="com.allyants.draggabletreeview" to force usage (may lead to runtime failures) -->
work like a charm:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.aspireone.myapplication"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk android:targetSdkVersion="28" android:minSdkVersion="14"
tools:overrideLibrary="com.allyants.draggabletreeview"/>
from this error message:
<!-- Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library [com.github.jakebonk:DraggableTreeView:1.0.1] C:UsersASPIREone.gradlecachestransforms-1files-1.1DraggableTreeView-1.0.1.aar45f4095d2e68f3e9a1fbc4b73c7f9c33AndroidManifest.xml as the library might be using APIs not available in 14
Suggestion: use a compatible library with a minSdk of at most 14,
or increase this project's minSdk version to at least 15,
or use tools:overrideLibrary="com.allyants.draggabletreeview" to force usage (may lead to runtime failures) -->
answered Mar 24 at 3:26
Bill GatesBill Gates
2810
2810
add a comment |
add a comment |
Try this instead.
Change minSdkVersion 15 to minSdkVersion 16 in build.gradle(module: app)
add a comment |
Try this instead.
Change minSdkVersion 15 to minSdkVersion 16 in build.gradle(module: app)
add a comment |
Try this instead.
Change minSdkVersion 15 to minSdkVersion 16 in build.gradle(module: app)
Try this instead.
Change minSdkVersion 15 to minSdkVersion 16 in build.gradle(module: app)
answered Apr 23 at 7:02
Md. Rejaul KarimMd. Rejaul Karim
1
1
add a comment |
add a comment |
The way I fixed it was to go to platformsandroid folder and did a find-in-folder from my VS code editor for minSdkVersion and replaced all minSdkVersion=16 to minSdkVersion=19 regardless of whether cordova generated it dynamically or not. Everything worked fine for me after that.
add a comment |
The way I fixed it was to go to platformsandroid folder and did a find-in-folder from my VS code editor for minSdkVersion and replaced all minSdkVersion=16 to minSdkVersion=19 regardless of whether cordova generated it dynamically or not. Everything worked fine for me after that.
add a comment |
The way I fixed it was to go to platformsandroid folder and did a find-in-folder from my VS code editor for minSdkVersion and replaced all minSdkVersion=16 to minSdkVersion=19 regardless of whether cordova generated it dynamically or not. Everything worked fine for me after that.
The way I fixed it was to go to platformsandroid folder and did a find-in-folder from my VS code editor for minSdkVersion and replaced all minSdkVersion=16 to minSdkVersion=19 regardless of whether cordova generated it dynamically or not. Everything worked fine for me after that.
answered May 17 at 14:07
vivek_23vivek_23
3,6382623
3,6382623
add a comment |
add a comment |
Please Follow these three steps to solve this error in ionic 3
1) projectfolder/platforms/android/CordovaLib/AndroidManifest.xml
<uses-sdk android:minSdkVersion="16" /> change this to
<uses-sdk android:minSdkVersion="19" />
2) projectfolder/platforms/android/gradle.properties
cdvMinSdkVersion=16 or X change to
cdvMinSdkVersion=19
3) projectfolder/config.xml
<preference name="android-minSdkVersion" value="16" /> change to
`
add a comment |
Please Follow these three steps to solve this error in ionic 3
1) projectfolder/platforms/android/CordovaLib/AndroidManifest.xml
<uses-sdk android:minSdkVersion="16" /> change this to
<uses-sdk android:minSdkVersion="19" />
2) projectfolder/platforms/android/gradle.properties
cdvMinSdkVersion=16 or X change to
cdvMinSdkVersion=19
3) projectfolder/config.xml
<preference name="android-minSdkVersion" value="16" /> change to
`
add a comment |
Please Follow these three steps to solve this error in ionic 3
1) projectfolder/platforms/android/CordovaLib/AndroidManifest.xml
<uses-sdk android:minSdkVersion="16" /> change this to
<uses-sdk android:minSdkVersion="19" />
2) projectfolder/platforms/android/gradle.properties
cdvMinSdkVersion=16 or X change to
cdvMinSdkVersion=19
3) projectfolder/config.xml
<preference name="android-minSdkVersion" value="16" /> change to
`
Please Follow these three steps to solve this error in ionic 3
1) projectfolder/platforms/android/CordovaLib/AndroidManifest.xml
<uses-sdk android:minSdkVersion="16" /> change this to
<uses-sdk android:minSdkVersion="19" />
2) projectfolder/platforms/android/gradle.properties
cdvMinSdkVersion=16 or X change to
cdvMinSdkVersion=19
3) projectfolder/config.xml
<preference name="android-minSdkVersion" value="16" /> change to
`
edited Apr 3 at 19:23
answered Apr 3 at 18:41
jithzzzjithzzz
113
113
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37293082%2fuses-sdkminsdkversion-15-cannot-be-smaller-than-version-16-declared-in-library%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
minSdkVersion __ targetSdkVersion __andcompileSdkVersion __in Build.gradle(Module: app)– Vishwesh Jainkuniya
May 18 '16 at 7:42
Do you use external libraries?
– Yoann Hercouet
May 18 '16 at 8:07
@YoannHercouet I just use the ionic framework. I don't know if they use external libraries. Maybe the ionic plugins are external libraries. The error occurs because the paypal plugin expect a minimum sdk version of 16
– Simon Schüpbach
May 18 '16 at 8:10