高德地图添加导航依赖冲突 com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
·
做高德导航的时候,之前先添加了一个高德3d地图的依赖,就是这个
compile 'com.amap.api:3dmap:latest.integration'
然后,后期要做高德地图导航功能,添加了这个依赖
compile 'com.amap.api:navi-3dmap:latest.integration'
报错了
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
看了看高德地图文档,没有做说明
那么看到这个错误的意思,感觉就是包有冲突了
去掉3d地图的依赖就好了,就是把 compile 'com.amap.api:3dmap:latest.integration' 去掉就ok了
compile 'com.amap.api:navi-3dmap:latest.integration'因为这里面已经包括了3dmap了
更多推荐

所有评论(0)