第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

AndroidGradle插件0.7.0:“APK打包過程中的重復(fù)文件”

AndroidGradle插件0.7.0:“APK打包過程中的重復(fù)文件”

拉風(fēng)的咖菲貓 2019-07-01 20:30:46
AndroidGradle插件0.7.0:“APK打包過程中的重復(fù)文件”使用AndroidGradle插件0.7.0,如下所示build.gradle:buildscript {     repositories {         mavenCentral()     }     dependencies {         classpath 'com.android.tools.build:gradle:0.7.0'     } } apply plugin: 'android' repositories {     maven { url "https://android-rome-feed-reader.googlecode.com/svn/maven2/releases" }     maven { url "http://dl.bintray.com/populov/maven" }     mavenCentral() } android {     compileSdkVersion 19     buildToolsVersion '18.1.1'     defaultConfig {         minSdkVersion 9         targetSdkVersion 19     }     buildTypes {         release {             runProguard true             proguardFile getDefaultProguardFile('proguard-android-optimize.txt')         }     }     productFlavors {         defaultFlavor {             proguardFile 'proguard-rules.txt'         }     }     sourceSets {         instrumentTest.setRoot('src/instrumentTest')     } } configurations {     apt } ext.androidAnnotationsVersion = '2.7.1'; dependencies {     compile 'com.android.support:support-v4:18.0.0'     compile 'com.viewpagerindicator:library:2.4.1@aar'     compile 'com.google.code.android-rome-feed-reader:android-rome-feed-reader:1.0.0-r2'     compile 'org.jdom:jdom:1.1.1-android-fork'     apt "com.googlecode.androidannotations:androidannotations:${androidAnnotationsVersion}"     compile "com.googlecode.androidannotations:androidannotations-api:${androidAnnotationsVersion}"     compile 'com.google.code.gson:gson:2.2.4'     compile 'com.j256.ormlite:ormlite-android:4.47'     compile 'com.j256.ormlite:ormlite-core:4.47'     compile 'org.springframework.android:spring-android-core:1.0.1.RELEASE'     compile 'org.springframework.android:spring-android-rest-template:1.0.1.RELEASE'     compile 'com.prolificinteractive:actionbarsherlock:4.3.1@aar'     compile 'com.google.code.geocoder-java:geocoder-java:0.15'     compile files('libs/CWAC-Pager.jar') }在我更新AndroidStudio之前,今天早上一切都很順利。有什么想法嗎?編輯:我可以通過運(yùn)行以下命令臨時(shí)修復(fù)它zip -d spring-android-core-1.0.1.RELEASE.jar META-INF/notice.txt直到所有重復(fù)的錯(cuò)誤消失。
查看完整描述

3 回答

?
神不在的星期二

TA貢獻(xiàn)1963條經(jīng)驗(yàn) 獲得超6個(gè)贊

截至AndroidStudio版本0.8.14

你應(yīng)該加上:

 android {
     packagingOptions { 
         exclude 'META-INF/LICENSE.txt'
         exclude 'META-INF/NOTICE.txt'
         exclude '...'
     }
 }

敬你的build.gradle檔案。

歷史:

根據(jù)這個(gè)bug中的注釋14:https:/prinetracker.google.com/disks/36982149#評(píng)注14這是AndroidGradle插件的0.7.0版本中的一個(gè)bug,不久將在0.7.1中修復(fù)。

下面是這個(gè)bug中關(guān)于添加0.7.1的注釋:

0.7.1這個(gè)問題的解決方案已經(jīng)過時(shí)了。

要排除文件的DSL是:

android {
    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
    }
}

您可以添加任意數(shù)量的排除語句。值是歸檔路徑。目前還沒有通配符或GLOB支持。

文件名“LICENSE.txt”和“NOTICE.txt”區(qū)分大小寫。請(qǐng)?jiān)囉谩癓icse.txt”和“note e.txt”。


查看完整回答
反對(duì) 回復(fù) 2019-07-01
?
慕田峪7331174

TA貢獻(xiàn)1828條經(jīng)驗(yàn) 獲得超13個(gè)贊


在我的例子中,我必須包括幾個(gè)額外的除外條款。看起來它不喜歡正則表達(dá)式,因?yàn)檎齽t表達(dá)式會(huì)使它成為一個(gè)很好的一行。

android {
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/LGPL2.1'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/notice.txt'
    }
}


查看完整回答
反對(duì) 回復(fù) 2019-07-01
?
肥皂起泡泡

TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超6個(gè)贊

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


查看完整回答
反對(duì) 回復(fù) 2019-07-01
  • 3 回答
  • 0 關(guān)注
  • 717 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)