简体   繁体   中英

Manifest Merger Failed Error: Gradle Version Issue

I am trying to create a Tinder-style swipe left/swipe right feature. But when I added the dependencies into my code I got this manifest error:

Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.mindorks:placeholderview:0.7.1] /Users/cassandracampbell/.gradle/caches/transforms-1/files-1.1/placeholderview-0.7.1.aar/e4aa1d0fe45df90e4bd68b2aac33a24e/AndroidManifest.xml as the library might be using APIs not available in 15 Suggestion: use a compatible library with a minSdk of at most 15, or increase this project's minSdk version to at least 16, or use tools:overrideLibrary="com.mindorks.placeholderview" to force usage (may lead to runtime failures)

How can I fix this?

您正在使用此库com.mindorks:placeholderview:0.7.1,其最小sdk为16。因此,要使用此库,您的最小sdk也应为16。只需将gradle中的最小sdk更改为16,它就会起作用。

According to error message:

Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.mindorks:placeholderview:0.7.1]

You need to change your minSdkVersion 14 to 16 in your app/build.gradle . Ie

defaultConfig {
    ...
    minSdkVersion 16
    ...
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM