mrmans0n / smart-location-lib

Android library project that lets you manage the location updates to be as painless as possible
1.65k stars 353 forks source link

fix no provider found exception #184

Open Zhu4ek opened 7 years ago

Zhu4ek commented 7 years ago

Fatal Exception: java.lang.IllegalArgumentException: name==null at android.location.LocationManager.getProvider(LocationManager.java:335) at android.location.LocationManager._requestLocationUpdates(LocationManager.java:658) at android.location.LocationManager.requestLocationUpdates(LocationManager.java:645) at io.nlopez.smartlocation.location.providers.LocationManagerProvider.start(LocationManagerProvider.java:65) at io.nlopez.smartlocation.location.providers.LocationGooglePlayServicesWithFallbackProvider.fallbackToLocationManager(LocationGooglePlayServicesWithFallbackProvider.java:88) at io.nlopez.smartlocation.location.providers.LocationGooglePlayServicesWithFallbackProvider.onConnectionSuspended(LocationGooglePlayServicesWithFallbackProvider.java:75) at io.nlopez.smartlocation.location.providers.LocationGooglePlayServicesProvider.onConnectionSuspended(LocationGooglePlayServicesProvider.java:215) at com.google.android.gms.common.internal.zzm.zzcP(Unknown Source)