flutter集成高德地图文档中有坑。
添加到yml文件
amap_flutter_map: 3.0.0 amap_flutter_location: ^3.0.0 amap_flutter_base: 3.0.0
错误 1:
AMapPrivacyStatement找不到
原因没添加amap_flutter_location: ^3.0.0
错误 2:
* 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'.
原因
重复添加了2D和3D地图
删除任何一个都可以
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)