best-flutter/flutter_amap_location

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

CatEatFishs opened this issue · 5 comments

使用 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

一样的错误

我也有一样的错误

一样的错误

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

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