smart-location-lib icon indicating copy to clipboard operation
smart-location-lib copied to clipboard

Crash for Android Geocoder not present

Open davidbilly opened this issue 8 years ago • 4 comments

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)

davidbilly avatar Apr 04 '16 02:04 davidbilly

The same issue on Mi phones

andro-jedi avatar Nov 04 '16 19:11 andro-jedi

I'm having this issue as well. Happened on a SP6040 TITAN.

Gloix avatar May 15 '17 15:05 Gloix

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

dsdebastiani avatar Apr 12 '18 21:04 dsdebastiani

same issue in OPPO CPH1729

rutvikwebmobtech avatar Dec 06 '18 04:12 rutvikwebmobtech