best-flutter / flutter_amap_location

高德地图flutter定位组件
MIT License
274 stars 70 forks source link

找不到com.amap.api.location.AMapLocationListener的类文件 #19

Open CatEatFishs opened 5 years ago

CatEatFishs commented 5 years ago

使用 amap_location: ^0.2.0 Flutter 1.5.4-hotfix.2 • channel stable Dart 2.3.0 (build 2.3.0-dev.0.5 a1668566e5) 会报下面这个找不到类的错误,请解决一下

/Users/hongka-liming/hongka4.0/flutterHK/hongka_flutter/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:30: 错误: 无法访问AMapLocationListener AmapLocationPlugin.registerWith(registry.registrarFor("com.jzoom.amaplocation.AmapLocationPlugin")); ^ 找不到com.amap.api.location.AMapLocationListener的类文件 1 个错误 Finished with error: Gradle task assembleDebug failed with exit code 1

GuoChang2032 commented 5 years ago

一样的错误

guuguo commented 5 years ago

我也有一样的错误

haibin2017 commented 5 years ago

一样的错误

haibin2017 commented 5 years ago

image 加上这个配置后可以了,测试项目正常,正式项目有这个错误 image

wk1017553772 commented 4 years ago

目前还是有这个问题,haibin2017的方法是可以暂时解决