接入高德地图报错More than one file was found with OS independent path

* What went wrong:

Execution failed for task ':app:mergeDebugJavaResource'.

> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

   > More than one file was found with OS independent path 'assets/location_map_gps_locked.png'.

 

More than one file was found with OS independent path 'assets/location_map_gps_locked.png'.

 

报错的地方在assets,这才知道,jar包里也可以包含assets资源内容

 

More than one file was found with OS independent path 'assets/ap1.data'

https://blog.csdn.net/qq_32623363/article/details/78892548

接入高德地图报错More than one file was found with OS independent path接入高德地图报错More than one file was found with OS independent path

 

 

 

 

应该是同时导入高德2D和3D地图导致的,官方也说了,不推荐同时在项目中使用2D和3D地图

接入高德地图报错More than one file was found with OS independent path

2D地图和3D地图只能同时使用一个,把2D地图的jar包删了就好了