Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
757 views
in Technique[技术] by (71.8m points)

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

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-prevplatformsandroiduildintermediatesexploded-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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...