ImaginativeShohag / Why-Not-Image-Carousel

Why Not use Image Carousel if you have lots of images to show!
https://imaginativeshohag.github.io/Why-Not-Image-Carousel/
Apache License 2.0
472 stars 69 forks source link

Manifest merger failed #20

Closed fadsel closed 3 years ago

fadsel commented 3 years ago

Cool Stuff you got here , Why not give it a try?

You see ... I tried adding this inside project's app.gradle

implementation 'me.relex:circleindicator:2.1.4'
    implementation 'com.github.ImaginativeShohag:Why-Not-Image-Carousel:v1.1.0'

And this is the error it produces when added and synced ...

ERROR: Manifest merger failed : uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [com.github.ImaginativeShohag:Why-Not-Image-Carousel:v1.1.0] C:\Users\<CurrentUser>\.gradle\caches\transforms-2\files-2.1\a29be6796303cd41d21e68d8a6dd501a\Why-Not-Image-Carousel-v1.1.0\AndroidManifest.xml as the library might be using APIs not available in 19
    Suggestion: use a compatible library with a minSdk of at most 19,
        or increase this project's minSdk version to at least 21,
        or use tools:overrideLibrary="org.imaginativeworld.whynotimagecarousel" to force usage (may lead to runtime failures)

What could possibly be the issue? Should I use tools:overrideLibrary="org.imaginativeworld.whynotimagecarousel"

PS:I have already migrated to Android X

fadsel commented 3 years ago

I just decided to upgrade minSdkVersion from 19 to 21