Manifest Merging Failed: Android Studio

后端 未结 2 1434
野趣味
野趣味 2021-01-16 07:05

I am not sure what\'s the issue. I googled and though it was about matching the sdk versions. They are the same as follows:

build.gradle

android {
co         


        
相关标签:
2条回答
  • 2021-01-16 07:39

    I think slidingMenu library minSdkVersion is greater than yours (minSdkVersion 4). So manifests cant be merged. You cant use library that requires min version 11 (e.g.) in app that works on api version 4.

    0 讨论(0)
  • 2021-01-16 07:49

    You will be ended up with this error, If your libraries/modules uses different minSdkVersion or targetSdkVersion inside your project.

    To find , In which module actual conflicts are happening you can see your Gradle Console output.

    Best practice is to have minSdkVersion 8 at least because most of the libraries like play services etc using this.

    Please do the following change and sync Project with gradle

    Try to Use minsdkVesion 8 in all your build.gradle files as well as AndroidManifest.xml files ans sync.

    If it doesn't solves the problem go through your gradle console to and make required changes as per the error shown.

    Note : While compilation, your minSdkVersion and targetSdkVersion in AndroidManifest.xml will be overridden by what you have mention in your build.gradle files.

    0 讨论(0)
提交回复
热议问题