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/maven/cn.leancloud.android/fastjson/pom.xml
File1: E:\AndroidStudioProjects\WeiXiaoGou\app\libs\fastjson.jar
File2: C:\Users\Administrator.gradle\caches\modules-2\files-2.1\cn.leancloud.android\fastjson\1.1.39-leancloud\94d4ebd4acdaf01d7445435382eea2d2d38e7534\fastjson-1.1.39-leancloud.jar

请问这问题该怎么解决啊,网上很多方法都试过了!
求帮助,急急急

你好,是否注意到文档里写的:

//为了解决部分第三方库重复打包了META-INF的问题
packagingOptions {
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/NOTICE.txt'
}

前段时间,我能使用的,今天我使用的时候就弹出错误信息,我还以为是包没有升级以前是V3.13.5版本,今天升级为V3.13.9,发现包导不进去了,我的程序完全使用不了了,过两天就要答辩了,所以特别急

v3.13.9 的 jar 包不要通过 files 放在 libs 下集成。直接 compile url。

具体怎么操作,请告知一下,我是个Android新手,谢谢啦
它提示的是fastjson.jar文件报错

太感谢你了 谢谢 现在已经解决了 我直接用的compile url集成的