zoukankan      html  css  js  c++  java
  • Android Studio 错误 Duplicate files copied in APK META-INF/LICENSE.txt

     1 .Duplicate files copied in APK META-INF/LICENSE.txt

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

    My logcat: log Execution failed for task ':Prog:packageDebug'.

    Duplicate files copied in APK META-INF/LICENSE.txt File 1: /home/scijoker/AndroidStudioProjects/ProgProject/Prog/libs/httpclient-4.1.1.jar File 2: /home/scijoker/AndroidStudioProjects/ProgProject/Prog/libs/httpclient-4.1.1.jar

     解决方法:
    [java] view plain copy
     
     在CODE上查看代码片派生到我的代码片
    1. android {  
    2.       
    3.   
    4.     packagingOptions {  
    5.         exclude 'META-INF/DEPENDENCIES.txt'  
    6.         exclude 'META-INF/LICENSE.txt'  
    7.         exclude 'META-INF/NOTICE.txt'  
    8.         exclude 'META-INF/NOTICE'  
    9.         exclude 'META-INF/LICENSE'  
    10.         exclude 'META-INF/DEPENDENCIES'  
    11.         exclude 'META-INF/notice.txt'  
    12.         exclude 'META-INF/license.txt'  
    13.         exclude 'META-INF/dependencies.txt'  
    14.         exclude 'META-INF/LGPL2.1'  
    15.     }  
    16. }  
  • 相关阅读:
    centos7.5部署mysql cluster NDB总结
    读《构建之法》13--17章有感
    读《构建之法》8--10章
    作业5.2
    作业5.1
    读《构建之法》6--7章读后感
    做汉堡,做汉堡
    《构建之法》1—5章读后感
    第二次作业
    1
  • 原文地址:https://www.cnblogs.com/exmyth/p/5541957.html
Copyright © 2011-2022 走看看