Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AndroidManifest Merging Errors: Error: uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library

This is the merging error.

  • AndroidManifest Merging Errors: Error: uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library ..android\build-cache\570d870ca8b91d8f399eeac1eabcca1d94c4782f\output\AndroidManifest.xml Suggestion: use tools:overrideLibrary="com.google.android.gms.iid

How to solve it?

like image 495
CODE LORD Avatar asked Apr 16 '17 11:04

CODE LORD


1 Answers

I assume you are using the latest version of play services. Google play services have stopped supporting sdk versions lower than 14. So, you have to set your minSdkVersion to 14. To change that, you have to go to app gradle file, there inside defaultConfig brace, set minSdkVersion to 14. After that, sync gradle then build and run the project.

defaultConfig {
       .....
        minSdkVersion 14
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
    } 

If you really need to set minSdkVersion to 11 (or lower than 14), use previous versions of play services.

like image 199
tahsinRupam Avatar answered Sep 28 '22 19:09

tahsinRupam