Duplicate files copied in APK META-INF/LICENSE
<메시지>
Error:FAILURE: Build failed with an exception.
* What went wrong:
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\admin\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-annotations\2.7.3\e250c11c1329c7b6b62442a9743befad78be553c\jackson-annotations-2.7.3.jar
File2: C:\Users\admin\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.7.2\84ffa765dd258dbab8695963c41308b054f3a1cb\jackson-databind-2.7.2.jar
File3: C:\Users\admin\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.7.3\1499b854ae9f370409792db5af1b552dc7d9682f\jackson-core-2.7.3.jar
* Try:
Run with --stacktrace option to get the stack trace.
Run with --debug option to get more log output.
< 조치 >
Add following into respective build.gradle file
android {
...
packagingOptions { exclude 'META-INF/ASL2.0' exclude 'META-INF/LICENSE' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/MANIFEST.MF' }
}
참고 : http://stackoverflow.com/questions/33923461/how-do-i-resolve-duplicate-files-copied-in-apk-meta-inf
'IT Tech. > Trouble & Shooting' 카테고리의 다른 글
윈도우10, VPN One-Click 연결 만들기 (0) | 2016.12.08 |
---|---|
요구사항 정리 (0) | 2016.11.23 |
윈도우 10 USB 부팅 디스크 만들기 (0) | 2016.10.11 |
Firebase Android App (0) | 2016.07.21 |
Office Excel 2013에서 Excel 97-2003을 열때 빈화면으로 바뀌는 현상 (0) | 2016.07.14 |