As Error:Duplicate files copied in APK META-INF/LICENSE.txt
Posted BandaYung
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了As Error:Duplicate files copied in APK META-INF/LICENSE.txt相关的知识,希望对你有一定的参考价值。
Duplicate files copied in APK META-INF/LICENSE.txt
File 1: /.../libs/httpclient-4.1.1.jar File 2: /.../libs/httpclient-4.1.1.jar
原因:根据(Duplicate files copied in APK)看错这种情况讲的是引用包有冲突,就是可能两个包中有冲突类等等
解决:在app->build.gradle文件中修改
android
...
packagingOptions
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
以上是关于As Error:Duplicate files copied in APK META-INF/LICENSE.txt的主要内容,如果未能解决你的问题,请参考以下文章
Knitr 无法编译 PDF:“工具错误::file_path_as_absolute(output_file)”
selenium - webdriver - 截图方法get_screenshot_as_file()
使用“with open() as file”方法,如何多次写入? [复制]
Cannot attach the file as database
copy the content of a file muliptle times and save as ordered files: