美文网首页我爱编程
Error:Execution failed for task

Error:Execution failed for task

作者: RunningTeemo | 来源:发表于2017-06-28 13:42 被阅读0次

    报错 Error:Execution failed for task ':app:processDebugManifest'.

    > Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38

    is also present at [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1).

    Suggestion: add 'tools:replace="android:value"' to  element at AndroidManifest.xml:25:5-27:41 to override.

    解决办法 1:replacecompile 'com.android.support:recyclerview-v7:+'bycompile 'com.android.support:recyclerview-v7:25.3.1'

    解决方法二  在build.gradle(module.app)中加

    configurations.all {

    resolutionStrategy.eachDependency { DependencyResolveDetails details ->

    defrequested = details.requested

    if(requested.group =='com.android.support') {

    if(!requested.name.startsWith("multidex")) {

    details.useVersion'25.3.0'

    }

    }

    }

    }

    相关文章

      网友评论

        本文标题:Error:Execution failed for task

        本文链接:https://www.haomeiwen.com/subject/liducxtx.html