项目集成高德地图SDK后出现的错误

项目集成高德地图SDK后出现下面错误:

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.

> More than one file was found with OS independent path 'assets/map_assets/icons_6_14_1510107235.data'


原因是build.gradle中已经有下面的代码:

compile fileTree(include: ['*.jar'], dir: 'libs')

就不再需要下面的代码了:

compile 'com.amap.api:navi-3dmap:latest.integration'
compile 'com.amap.api:search:latest.integration'
compile 'com.amap.api:location:latest.integration'

解决:

把不需要的代码删除,错误就消失了





猜你喜欢

转载自blog.csdn.net/hbbdzry/article/details/79500794