码迷,mamicode.com
首页 > 移动开发 > 详细

Android Studio 错误 Duplicate files copied in APK META-INF/LICENSE.txt

时间:2016-05-30 12:42:03      阅读:268      评论:0      收藏:0      [点我收藏+]

标签:

 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
 
 技术分享技术分享
  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. }  

Android Studio 错误 Duplicate files copied in APK META-INF/LICENSE.txt

标签:

原文地址:http://www.cnblogs.com/exmyth/p/5541957.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!