Suggestion: add 'tools:replace="android:value"' to element at...

记录下来少走些坑吧

一:无论用
tools:replace="android:icon,android:theme"
xmlns:tools="http://schemas.android.com/tools"
二:(无论用)

defaultConfig 中添加 multiDexEnabled true

三 (无论用)

在build.gradle根标签上加上useOldManifestMerger true (懒人方法)

四 (无论用)
(无论用)defaultConfigmultiDexEnabled true
    1. <meta-data android:name="UMENG_APPKEY" android:value="*****"
五:(无论用)
<user-sdk tools:overrideLibrary="本身须要强制替换的库"/>

六:试图将版本号改为一致的,但是jar包中的根本不能改

七:(解决了)
//Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:41 to override.
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'
} } }}
相关文章
相关标签/搜索