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

报错信息:
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')
    }
}

你可能感兴趣的:(acrgis,Android,arcgis)