studio 编译错误记录
来源:互联网 发布:手机新浪微博域名修改 编辑:程序博客网 时间:2024/06/04 18:02
Error: duplicate files during packaging of APK E:\**\**\app-debug-unaligned.apk
Path in archive: META-INF/LICENSE.txt
Origin 1: E:\**\**\app\libs\httpmime-4.1.2.jar
Origin 2: E:\**\**\app\libs\commons-lang-2.6.jar
You can ignore those files in your build.gradle:
android {
packagingOptions {
exclude 'META-INF/LICENSE.txt'
}
}
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageDebug'.
> Duplicate files copied in APK META-INF/LICENSE.txt
File 1: E:\**\**\app\libs\httpmime-4.1.2.jar
File 2: E:\**\**\app\libs\httpmime-4.1.2.jar
* Try:
Path in archive: META-INF/LICENSE.txt
Origin 1: E:\**\**\app\libs\httpmime-4.1.2.jar
Origin 2: E:\**\**\app\libs\commons-lang-2.6.jar
You can ignore those files in your build.gradle:
android {
packagingOptions {
exclude 'META-INF/LICENSE.txt'
}
}
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageDebug'.
> Duplicate files copied in APK META-INF/LICENSE.txt
File 1: E:\**\**\app\libs\httpmime-4.1.2.jar
File 2: E:\**\**\app\libs\httpmime-4.1.2.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
从Eclipse 中迁移的一个项目,运行就报这个错误,网上查询后得到解决方法。在 app 项目的 build.gradle 中添加
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
。
0 0
- studio 编译错误记录
- Visual studio 编译记录
- 【Android studio】错误记录
- Android Studio 错误记录
- Android Studio编译错误
- Android studio 编译错误
- Visual Studio编译错误
- Android studio 编译错误
- php 编译错误记录
- 编译错误记录
- ISE编译错误记录
- 系统编译错误记录
- GDAL编译错误记录
- AS 编译错误记录
- Caffe 编译错误记录
- Android Studio 使用错误记录
- android studio 编译调试 错误
- android studio 编译调试 错误
- 自动化测试框架思路简单分享
- Classpath 设置了但是找不到包?
- June 18th news from NPR
- tasklet
- jQuery对象与DOM对象相互转化
- studio 编译错误记录
- 如何查看yum安装的软件路径
- UDP Server/Client
- js拾遗: 函数字面量
- C++笔记整理
- MySQL行级锁、表级锁、页级锁详细介绍
- WPF 与网页交互(Frame,WebBrowser)
- 在C#中使用C++编写的类
- POJ 1012 && HDU 1443 Joseph(约瑟夫问题)