Manifest Merging Failed: Android Studio

后端 未结 2 1433
野趣味
野趣味 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: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.

提交回复
热议问题