日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Manifest merger failed : Attribute meta-data#android.support.VERSION@value..

發布時間:2024/3/12 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Manifest merger failed : Attribute meta-data#android.support.VERSION@value.. 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在添加leakcanary依賴時出現如下問題

Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.4.0) from [com.android.support:design:25.4.0] AndroidManifest.xml:28:13-35is also present at [com.android.support:support-fragment:26.0.0] AndroidManifest.xml:28:13-35 value=(26.0.0).Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:26:9-28:38 to override.


當前build.gradle如下:

apply plugin: 'com.android.application'android {compileSdkVersion 25defaultConfig {applicationId "com.*.*"minSdkVersion 19targetSdkVersion 25versionCode 1versionName "1.0"testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"vectorDrawables.useSupportLibrary = true}buildTypes {release {minifyEnabled falseproguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'}} }dependencies {implementation fileTree(include: ['*.jar'], dir: 'libs')implementation 'com.android.support.constraint:constraint-layout:1.1.3'androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'implementation 'com.android.support:appcompat-v7:25.4.0'implementation 'com.android.support:design:25.4.0'implementation 'com.jakewharton:butterknife:8.8.1'annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'implementation 'com.youth.banner:banner:1.4.10'implementation 'com.github.bumptech.glide:glide:4.2.0'annotationProcessor 'com.github.bumptech.glide:compiler:4.2.0'/*webview*/implementation 'com.just.agentweb:agentweb:4.0.2' // (必選)implementation 'com.just.agentweb:download:4.0.2' // (可選)implementation 'com.just.agentweb:filechooser:4.0.2'// (可選)/*內存泄漏*/debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.2'releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.2'// Optional, if you use support library fragments:debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.2' }

原因:可能leakcannary中的存在了support:appcompat-v7不同的或者比app較高版本導致的
解決方法
因為我的項目是使用leakcanary時候出現的,所以我將leakcanary的版本降低就解決了(由1.6.2變為1.5.4),最終build.gradle如下:

apply plugin: 'com.android.application'android {compileSdkVersion 25defaultConfig {applicationId "com.hj.wanandroidhj"minSdkVersion 19targetSdkVersion 25versionCode 1versionName "1.0"testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"vectorDrawables.useSupportLibrary = true}buildTypes {release {minifyEnabled falseproguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'}} }dependencies {implementation fileTree(include: ['*.jar'], dir: 'libs')implementation 'com.android.support.constraint:constraint-layout:1.1.3'androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'implementation 'com.android.support:appcompat-v7:25.4.0'implementation 'com.android.support:design:25.4.0'implementation 'com.jakewharton:butterknife:8.8.1'annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'implementation 'com.youth.banner:banner:1.4.10'implementation 'com.github.bumptech.glide:glide:4.2.0'annotationProcessor 'com.github.bumptech.glide:compiler:4.2.0'/*webview*/implementation 'com.just.agentweb:agentweb:4.0.2' // (必選)implementation 'com.just.agentweb:download:4.0.2' // (可選)implementation 'com.just.agentweb:filechooser:4.0.2'// (可選)/*內存泄漏*/debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'/*64k 分包*/ // implementation 'com.android.support:multidex:1.0.3' }

希望我遇到的這個問題對你有幫助

總結

以上是生活随笔為你收集整理的Manifest merger failed : Attribute meta-data#android.support.VERSION@value..的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。