rtchagas / pingplacepicker

An almost plug and play replacement for Google's Place Picker
Apache License 2.0
142 stars 55 forks source link

getting error and app crashed #65

Open GjoAbrahamN opened 4 years ago

GjoAbrahamN commented 4 years ago

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.apple.edrops, PID: 7190 java.lang.NullPointerException: CameraUpdateFactory is not initialized at com.google.android.gms.common.internal.Preconditions.checkNotNull(Unknown Source:11) at com.google.android.gms.maps.CameraUpdateFactory.zzc(Unknown Source:2) at com.google.android.gms.maps.CameraUpdateFactory.newLatLngZoom(Unknown Source:29) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:298) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:54) at com.google.android.gms.tasks.zzn.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

this is the error I am getting when testing in API level 26 emulator also nearby places are not listing.

but in higher versions the maps not showing as shown in your sample ,

Screenshot 2020-03-08 at 3 26 46 PM

this is how i configured my map API

Screenshot 2020-03-08 at 3 28 36 PM

this is how I configured my android API

Screenshot_2020-03-08-15-29-51-18_cca077c0d5add1ea1302c3e253867b41 this is the screenshot from my latest device

E/RecyclerView: No adapter attached; skipping layout E/Volley: [6123] bq.a: Unexpected response code 400 for https://clients4.google.com/glm/mmap/api E/Volley: [6122] bq.a: Unexpected response code 400 for https://clients4.google.com/glm/mmap/api i am getting this status in my console.