久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

錯誤:任務(wù)“:app:transformResourcesWithMergeJavaResForDeb

Error:Execution failed for task #39;:app:transformResourcesWithMergeJavaResForDebug#39;(錯誤:任務(wù)“:app:transformResourcesWithMergeJavaResForDebug執(zhí)行失敗)
本文介紹了錯誤:任務(wù)“:app:transformResourcesWithMergeJavaResForDebug"執(zhí)行失敗的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

所以我在嘗試運行我的項目時不斷收到 gradle build 錯誤.我已經(jīng)搜索了其他解決方案,有人說添加:

So I'm continuously receiving a gradle build error upon trying to run my project. I have searched for other solutions and some say that adding:

packagingOptions {
    exclude 'META-INF/NOTICE'
}

到我的應(yīng)用程序的 gradle.build 將解決問題,但是,它沒有.這是我的應(yīng)用的 gradle.build 目前的樣子.

to my app's gradle.build would fix the issue, however, it doesn't. Here is what my app's gradle.build currently looks like.

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.google.android.gms:play-services:8.3.0'
    compile 'com.google.android.gms:play-services-ads:8.3.0'
    compile 'com.google.android.gms:play-services-identity:8.3.0'
    compile 'com.firebase:firebase-client-android:2.3.1'
}

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.1'
    useLibrary 'org.apache.http.legacy'

    defaultConfig {
        applicationId "com.example.j.airportmeet"
        minSdkVersion 18
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }

    packagingOptions {
        exclude 'META-INF/NOTICE'
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

編輯

完整的錯誤是這樣的:

Edit

The full error is this:

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE
    File1: .gradlecachesmodules-2files-2.1com.fasterxml.jackson.corejackson-databind2.2.23c8f6018eaa72d43b261181e801e6f8676c16ef6jackson-databind-2.2.2.jar
    File2: .gradlecachesmodules-2files-2.1com.fasterxml.jackson.corejackson-core2.2.2d20be6a5ddd6f8cfd36ebf6dea329873a1c41f1bjackson-core-2.2.2.jar
    File3: .gradlecachesmodules-2files-2.1com.fasterxml.jackson.corejackson-annotations2.2.2285cb9c666f0f0f3dd8a1be04e1f457eb7b15113jackson-annotations-2.2.2.jar

推薦答案

正如錯誤消息所示,您沒有排除存在于多個依賴項中的 META-INF/LICENSE 文件

As the error message suggests you are not excluding the META-INF/LICENSE file which exists in more than one of your dependencies

com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: 在 APK META-INF/LICENSE 中復(fù)制的文件重復(fù)

com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE

packagingOptions {
    exclude 'META-INF/NOTICE' // will not include NOTICE file
    exclude 'META-INF/LICENSE' // will not include LICENSE file
    // as noted by @Vishnuvathsan you may also need to include
    // variations on the file name. It depends on your dependencies.
    // Some other common variations on notice and license file names
    exclude 'META-INF/notice'
    exclude 'META-INF/notice.txt'
    exclude 'META-INF/license'
    exclude 'META-INF/license.txt'
}

這篇關(guān)于錯誤:任務(wù)“:app:transformResourcesWithMergeJavaResForDebug"執(zhí)行失敗的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現(xiàn) IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當(dāng)前風(fēng)味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復(fù)“意外元素lt;查詢gt;在“清單中找到錯誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風(fēng)味庫的多風(fēng)味應(yīng)用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 欧美激情国产精品 | 免费人成激情视频在线观看冫 | 亚洲欧美一区二区三区国产精品 | 天堂综合 | 黄色片免费在线观看 | 欧美男人天堂 | 紧缚调教一区二区三区视频 | 国产精品亚洲精品久久 | 欧美xxxx日本 | 国产情侣在线看 | 国产精品亚洲一区二区三区在线观看 | 亚洲精品福利在线 | 日本精品视频在线观看 | 激情五月婷婷丁香 | 九九久久国产精品 | 激情六月丁香 | 中文字字幕一区二区三区四区五区 | 99亚洲精品 | 日韩av高清在线 | 精久久久| 精品国产乱码久久久久久1区2区 | 久久一日本道色综合久久 | 欧美日韩精品一区 | 欧美国产日韩一区二区三区 | 亚洲精品一区在线观看 | 国产精品区一区二区三区 | 一区二区在线 | 日韩欧美在线免费观看 | 一级亚洲| 大香网伊人 | 日韩一区二区在线播放 | 欧美日韩精品中文字幕 | 亚洲成av人片在线观看 | 天堂综合网 | www.亚洲精品| 国产欧美在线观看 | 日韩av第一页 | 久久久久久综合 | 国产精品亚洲视频 | 日本网站免费在线观看 | 日韩电影一区二区三区 |