错误:任务':app:processDebugAndroidTestManifest'的执行失败 [英] Error:Execution failed for task ':app:processDebugAndroidTestManifest'

查看:3057
本文介绍了错误:任务':app:processDebugAndroidTestManifest'的执行失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我将buildToolsVersion从26.0.1更新到26.0.2时发生的情况.

this is what happened when i update buildToolsVersion from 26.0.1 to 26.0.2.

错误:任务':all:processDebugAndroidTestManifest'的执行失败. 清单合并失败:来自[com.android.support:cardview-v7:26.0.2] AndroidManifest.xml:25:13-35的属性meta-data#android.support.VERSION@value value =(26.0.2) 也出现在[com.android.support:support-v13:26.0.1] AndroidManifest.xml:28:13-35 value =(26.0.1). 建议:在manifestMerger8124076249449477164.xml:23:9-25:38的元素上添加'tools:replace ="android:value"'以覆盖.

Error:Execution failed for task ':all:processDebugAndroidTestManifest'. Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.2) from [com.android.support:cardview-v7:26.0.2] AndroidManifest.xml:25:13-35 is also present at [com.android.support:support-v13:26.0.1] AndroidManifest.xml:28:13-35 value=(26.0.1). Suggestion: add 'tools:replace="android:value"' to element at manifestMerger8124076249449477164.xml:23:9-25:38 to override.

但是我没有将support-v13:26.0.1 library添加到我的项目中!

but i didn't add support-v13:26.0.1 library to my project!!

我尝试将tools:replace="android:value"添加到清单中,并进行清理-重建,没有任何更改.

i tried to add tools:replace="android:value" to manifest, and clean - rebuild, nothing changed.

build.gradle:

dependencies { 
    compile 'com.android.support:appcompat-v7:26.0.+' 
    compile 'com.android.support:design:26.0.+' 
    compile 'com.android.support:cardview-v7:26.0.+' 
    compile 'com.android.support:recyclerview-v7:26.0.+' 
    compile 'cn.pedant.sweetalert:library:1.3' 
    compile 'com.nineoldandroids:library:2.4.0' 
    compile 'com.daimajia.easing:library:1.0.1@aar' 
    compile 'com.daimajia.androidanimations:library:1.1.3@aar' 
    compile 'com.google.code.gson:gson:2.8.2' 
    compile 'com.wdullaer:materialdatetimepicker:3.3.0' 
}

推荐答案

com.wdullaer:materialdatetimepicker库使用它.您可以在此处检查依赖项.

The com.wdullaer:materialdatetimepicker library uses it. You can check the dependencies here.

在您的build.gradle中添加显式依赖项以使用相同级别的支持库:

Add in your build.gradle an explicit dependency to use the same level of support libraries:

compile 'com.android.support:support-v13:26.0.2'

这篇关于错误:任务':app:processDebugAndroidTestManifest'的执行失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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