清单合并失败:机器人工作室 [英] Manifest Merging Failed: Android Studio

查看:166
本文介绍了清单合并失败:机器人工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道有什么问题。我一派,虽然它是关于匹配的SDK版本。它们是相同的,如下所示:

build.gradle

 安卓{
compileSdkVersion 17
buildToolsVersion19.0.1

defaultConfig {
    的minSdkVersion 4
    targetSdkVersion 17
}

buildTypes {
    推出 {
        runProguard假
        proguardFiles getDefaultProguardFile('ProGuard的-android.txt'),'ProGuard的-rules.txt
    }
}
}
依赖{
编制项目(:slidingMenu)
编制项目(:slidingMenu)
编译文件(库/ GoogleAdMobAdsSdk-6.4.1.jar)
编译文件(库/解析-1.4.0.jar)
}
 

清单文件:

 <舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
包=gurbani.ujagar
机器人:hardwareAccelerated =真
机器人:INSTALLLOCATION =preferExternal
安卓版code =26
机器人:VERSIONNAME =7.0>

<用途-SDK
    安卓的minSdkVersion =4
    机器人:targetSdkVersion =17/>
 

解决方案

您会结束了这个错误,如果你的库/模块采用不同的的minSdkVersion targetSdkVersion 您的项目中。

要找到,其中模块实际冲突的发生,你可以看到你的摇篮控制台输出。

最好的做法是,的minSdkVersion 8 至少是因为最喜欢的播放服务等使用此。

的库

请执行下列操作的变化和同步工程与摇篮

尝试使用 minsdkVesion 8 在所有的 build.gradle 文件以及 AndroidManifest.xml中文件答同步。

如果不解决通过您的摇篮控制台问题去并进行必要的更改按照错误显示。

注意:当编辑,你的minSdkVersion和targetSdkVersion在AndroidManifest.xml中会被你所提到的在你的build.gradle文件覆盖

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 {
compileSdkVersion 17
buildToolsVersion "19.0.1"

defaultConfig {
    minSdkVersion 4
    targetSdkVersion 17
}

buildTypes {
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}
}
dependencies {
compile project(':slidingMenu')
compile project(':slidingMenu')
compile files('libs/GoogleAdMobAdsSdk-6.4.1.jar')
compile files('libs/Parse-1.4.0.jar')
}

Manifest file:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="gurbani.ujagar"
android:hardwareAccelerated="true"
android:installLocation="preferExternal"
android:versionCode="26"
android:versionName="7.0" >

<uses-sdk
    android:minSdkVersion="4"
    android:targetSdkVersion="17" />

解决方案

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.

这篇关于清单合并失败:机器人工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆