【问题处理】arcgis运行在android studio上jar包冲突解决
16lz
2022-01-23
报错信息:
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
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') }}
更多相关文章
- 获取Android(安卓)Device的信息
- Android手机开发:获取GPS信息
- 为ListActivity 添加Button
- Android读取手机联系人信息
- Android(安卓)定时获取系统内存信息
- android jni
- java android 获取手机操作系统相关信息
- [Android]android studio预览视图时报错
- 获取android联系人信息