Android开发 com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-.
来源:互联网 发布:asp网络程序怎么样? 编辑:程序博客网 时间:2024/06/06 03:05
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE File1: C:\Users\Vincent\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.4.3\feff63199be7b8f495c2f3e2096dcb6bd5e5b0b3\jackson-databind-2.4.3.jar File2: C:\Users\Vincent\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-annotations\2.4.0\d6a66c7a5f01cf500377bd669507a08cfeba882a\jackson-annotations-2.4.0.jar File3: C:\Users\Vincent\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.4.3\4cb3dbb0c2f75b51aa7543c53252989785a0c609\jackson-core-2.4.3.jar
解决方案:
在app的build.gradle的android{}中添加:
packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' }
0 0
- Android开发 com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-.
- com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/
- com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/NOTICE
- com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE
- com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/DEPENDE
- com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE
- com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE
- com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE
- com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE
- android studio报错DuplicateFileException: Duplicate files copied in APK META-INF/NOTICE.txt
- DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE
- DuplicateFileException: Duplicate files copied in APK
- DuplicateFileException: Duplicate files copied in APK
- android studio Duplicate files copied in APK META-INF/NOTICE
- Android解决Duplicate files copied in APK META-INF/LICENSE
- com.android.builder.packaging.DuplicateFileException:
- com.android.builder.packaging.DuplicateFileException
- 18、DuplicateFileException: Duplicate files copied in APK META-INF/INDEX.LIST
- Codeforces Round #390 (Div. 2)A
- svn安装+配置客户端方法2【申明:来源于网络】
- Spring Boot 快速入门
- OpenCV进阶之路:一个简化的视频摘要程序
- 线程及消息
- Android开发 com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-.
- cmd/bat如何自动请求管理员权限而不需要右键管理员运行
- 自定义控件 随着手滑动DrawView
- Mybatis Generator 生成的mapper只有insert方法
- 旋转矩阵
- Codeforces Round #390 (Div. 2)(A+B)
- centos7建站操作步骤
- EJB3单元测试
- 【蓝桥杯】试题集入门训练第三题