smart-location-lib
smart-location-lib copied to clipboard
Crash for Android Geocoder not present
Hi @mrmans0n i received this crash on certain phone from crashlytics :D
Fatal Exception: java.lang.RuntimeException: Android Geocoder not present. Please check if Geocoder.isPresent() before invoking the search at io.nlopez.smartlocation.geocoding.providers.AndroidGeocodingProvider.(AndroidGeocodingProvider.java) at io.nlopez.smartlocation.geocoding.providers.AndroidGeocodingProvider.(AndroidGeocodingProvider.java) at io.nlopez.smartlocation.SmartLocation.geocoding(SmartLocation.java:116) io.nlopez.smartlocation.location.providers.LocationGooglePlayServicesProvider.onLocationChanged(LocationGooglePlayServicesProvider.java:204)
The same issue on Mi phones
I'm having this issue as well. Happened on a SP6040 TITAN.
Same error for me with this devices: Motorola:
- Moto E (4)
- Moto E (4) Plus
- Moto C
- Moto C
ASUS
- X008DB
- \xe9\xa3\x9e\xe9\xa9\xac2 Plus(X550)
LeMobile
- LeMax2
UMIDIGI
- Crystal
Other
- BLU
- OUKITEL
- ZUK
- Xiaomi
- Sony
- Samsung
The suggestion is run a fallback to use Google GeoCoding REST API: https://stackoverflow.com/questions/20393850/android-geocoder-is-not-available
same issue in OPPO CPH1729