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

錯(cuò)誤 :: 打包 APK 時(shí)出現(xiàn)重復(fù)文件

Error :: duplicate files during packaging of APK(錯(cuò)誤 :: 打包 APK 時(shí)出現(xiàn)重復(fù)文件)
本文介紹了錯(cuò)誤 :: 打包 APK 時(shí)出現(xiàn)重復(fù)文件的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

Android 工作室.我在應(yīng)用程序運(yùn)行期間遇到這種錯(cuò)誤.

Android Studio. I'm getting this kind of error during application run.

錯(cuò)誤:任務(wù) ':app:packageDebug' 執(zhí)行失敗.APK META-INF/notice.txt 中復(fù)制的重復(fù)文件

build.gradle

apply plugin: 'android'

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.1"

    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/ASL2.0'
    }

    defaultConfig {
        minSdkVersion 7
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile 'com.android.support:appcompat-v7:19.0.1'
    compile 'com.j256.ormlite:ormlite-android:4.48'
    compile 'org.codehaus.jackson:jackson-core-asl:1.9.13'
    compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
    compile 'com.octo.android.robospice:robospice:1.4.11'
    compile 'com.octo.android.robospice:robospice-spring-android:1.4.11'
}

我該如何解決這個(gè)錯(cuò)誤?

How can I fix this error?

已編輯

這些排除選項(xiàng)解決了我的問題:

These exclude options solved my problem:

packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/ASL2.0'
    }

推薦答案

我認(rèn)為字符串比較是區(qū)分大小寫的.嘗試使用 exclude 'META-INF/notice.txt'

I think the string comparison is case sensitive. try with exclude 'META-INF/notice.txt'

這篇關(guān)于錯(cuò)誤 :: 打包 APK 時(shí)出現(xiàn)重復(fù)文件的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(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;在“清單中找到錯(cuò)誤?)
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 依賴在編譯和運(yùn)行時(shí)有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 在线观看av免费 | 久草在线在线精品观看 | heyzo在线| 韩日一区二区三区 | 欧美精品久久久 | 中文字幕免费 | 精品日韩一区 | 国产成人在线看 | 免费观看黄网站 | 色屁屁在线观看 | 一区二区三区韩国 | av免费网站在线观看 | 午夜免费av | 日韩看片 | 亚洲精品456 | 91中文视频 | 日韩久久在线 | 亚洲二区视频 | 欧美成人一区二区 | 天天操操 | 日韩中文电影 | 久久久综合 | 日韩欧美一区二区三区免费观看 | 在线免费看黄 | 亚洲男女激情 | 欧美成人a | 精品乱码一区二区 | 亚洲欧美日韩精品久久亚洲区 | 国产精品一区在线观看 | 久久精品国产久精国产 | 亚洲精彩视频在线观看 | 亚洲免费精品一区 | 日本理论片好看理论片 | 亚州一区二区三区 | 99热最新网址 | 久久久亚洲一区 | 手机看片169| 亚洲成人免费视频在线 | 精品欧美一区二区三区久久久小说 | 国产探花在线精品一区二区 | 日韩国产欧美 |