【问题处理】arcgis运行在android studio上jar包冲突解决

来源:互联网 发布:网络广告公司铭心营销 编辑:程序博客网 时间:2024/05/14 14:52
报错信息:
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: jackson-core-lgpl-1.9.5.jar

File2: jackson-mapper-lgpl-1.9.5.jar

解决方法:

参考链接:http://blog.csdn.net/cheng900716lihai/article/details/50896705

android {    packagingOptions {//exclude('META-INF/DEPENDENCIES')        exclude('META-INF/NOTICE')//exclude('META-INF/LICENSE')        exclude('META-INF/LICENSE')        exclude('META-INF/LGPL2.1')    }}