flutter集成高德地图

flutter集成高德地图,第1张

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地图

删除任何一个都可以


 

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/996471.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存