We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
platform : android-arm64 • Android 9 (API 28)
PermissionStatus status = await Permission.locationWhenInUse.request(); if (status != PermissionStatus.granted) { debugPrint("获取定位权限失败"); return; } await AMapLocationClient.startup(new AMapLocationOption( desiredAccuracy: CLLocationAccuracy.kCLLocationAccuracyHundredMeters)); var location = await AMapLocationClient.getLocation(true); debugPrint("$location");
#result:
Rejecting re-init on previously-failed class java.lang.Class<com.loc.ea$a>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/telephony/TelephonyManager$CellInfoCallback;
The text was updated successfully, but these errors were encountered:
这个貌似是因为TelephonyManager.CellInfoCallback是Android 10(Api 29) 才添加的api,跑在Android 9上他就会找不到这个类…… 作为安卓开发新手,我也遇到了这个问题,貌似无解
TelephonyManager.CellInfoCallback
Sorry, something went wrong.
No branches or pull requests
platform : android-arm64 • Android 9 (API 28)
code
#result:
Rejecting re-init on previously-failed class java.lang.Class<com.loc.ea$a>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/telephony/TelephonyManager$CellInfoCallback;
The text was updated successfully, but these errors were encountered: