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:2

报错 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 ':app:processDebugManifest'. > Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:appcompat-v7:2)