Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library

I don't understand this error message

  C:\Program Files (x86)\Jenkins\workspace\__temp-mobile-prev\platforms\android\AndroidManifest.xml:67:5 Error:         uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library C:\Program Files (x86)\Jenkins\workspace\__temp-mobile-prev\platforms\android\build\intermediates\exploded-aar\com.paypal.sdk\paypal-android-sdk\2.14.2\AndroidManifest.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.

like image 793
Simon Schüpbach Avatar asked May 18 '16 07:05

Simon Schüpbach


People also ask

How do I find the minimum sdk version?

Go to: File > Project Structure , then under modules choose your module (that probably will be app , then under the tab flavors you can see minimum sdk and target sdk.

How do I change sdk to minSdkVersion?

check it: Android Studio->file->project structure->app->flavors->min sdk version and if you want to run your application on your mobile you have to set min sdk version less than your device sdk(API) you can install any API levels. Show activity on this post. Set the min SDK version in your project's AndroidManifest.


1 Answers

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 
like image 52
Chris Underdown Avatar answered Sep 19 '22 21:09

Chris Underdown