Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:22:5-2

在引入第三方的包报了一个错 错误如下:
	Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:cardview-v7:26.0.0-alpha1]   
        AndroidManifest.xml:24:9-38 is also present at [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31 value=(25.3.1).
	Suggestion: add 'tools:replace="android:value"' to  element at AndroidManifest.xml:22:5-24:41 to override.
在moudle的build.gradle文件添加:
configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                details.useVersion '25.3.0'
            }
        }
    }
}

 
  
参考:http://blog.csdn.net/qq_33210042/article/details/75808292

你可能感兴趣的:(2017)