java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/maps/GeoPoint;
at com.fmit.warmdroidapp.GPSController.setLocationManagerUI(GPSController.java:930)
at com.fmit.warmdroidapp.GPSController.startLocation(GPSController.java:186)
at com.fmit.warmdroidapp.BaseActivity.sendCurrentLocation(BaseActivity.java:332)
Android 10 Устройство Samsung имеет проблемы, но Huawei работает нормально. Ниже приведен код:
GPSController. java:
protected void setLocationManagerUI(boolean gpsProviderEnabled,boolean networkProviderEnabled) {
try {
_lastKnownLocationNetworkProvider = _locationManager
.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
_lastKnownLocationGPSProvider = _locationManager
.getLastKnownLocation(LocationManager.GPS_PROVIDER);
} catch (Exception exc) {
Log.d(BaseLogConstant.logGPSController, "setLocationManagerUI() "
+ exc.toString());
}
Другая часть кода
} else if (cachedNetworkTime > cachedGPSTime) {
ourLocation = new GeoPoint((int) (_cachedNetworkLatitude * 1E6),(int) (_cachedNetworkLongitude * 1E6));
// NOTE: This does not take into account if _cachedGPSTime == _cachedNetworkTime The changes of that happening are small.
} else {
ourLocation = new GeoPoint((int) (_cachedGPSLatitude * 1E6),(int) (_cachedGPSLongitude * 1E6));
}