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'
} } }}
相關文章
相關標籤/搜索