humazed / google_map_location_picker

🌍 Map location picker component for flutter Based on google_maps_flutter
Apache License 2.0
206 stars 310 forks source link

I can't find location. #15

Closed pavel-birdy closed 4 years ago

pavel-birdy commented 5 years ago

I just run the example app and I am getting these exceptions and can't get any location only Lat and Long.

I/flutter ( 3549): package:google_map_location_picker/src/map.dart 284:7 | GeolocationStatus.granted
I/flutter ( 3549): package:google_map_location_picker/src/map.dart 60:7 | position = Lat: ***, Long: ***
I/flutter ( 3549): package:google_map_location_picker/src/map.dart 284:7 | GeolocationStatus.granted
I/Google Maps Android API( 3549): Google Play services package version: 19420039
W/System  ( 3549): A resource failed to call release. 
I/flutter ( 3549): onCameraMoveStarted#_lastMapPosition = LatLng(45.521563, -122.677433)
I/flutter ( 3549): package:google_map_location_picker/src/map.dart 284:7 | GeolocationStatus.granted
I/flutter ( 3549): RangeError (index): Invalid value: Valid value range is empty: 0
I/flutter ( 3549): RangeError (index): Invalid value: Valid value range is empty: 0
I/flutter ( 3549): onCameraIdle#_lastMapPosition = LatLng(***, ***)
I/flutter ( 3549): package:google_map_location_picker/src/map.dart 284:7 | GeolocationStatus.granted
I/flutter ( 3549): RangeError (index): Invalid value: Valid value range is empty: 0

Screenshot_20191021-221135

humazed commented 5 years ago

possible duplicate of #14

humazed commented 5 years ago

I'm closing the current one as a duplicate. If you disagree please write in the comments and I will reopen it.

pavel-birdy commented 5 years ago

Sorry it was my fault. I read that but didn't enable Places, Geolocation and Geocoding API. But is this okay if I am still getting some exceptions

I/flutter (10962): onCameraMoveStarted#_lastMapPosition = LatLng(18.570053727657285, 42.768663950264454)
I/flutter (10962): onCameraIdle#_lastMapPosition = LatLng(18.57033849411387, 42.76811745017767)
I/flutter (10962): package:google_map_location_picker/src/map.dart 284:7 | GeolocationStatus.granted
I/flutter (10962): RangeError (index): Invalid value: Valid value range is empty: 0
humazed commented 5 years ago

The only error I see is RangeError (index): Invalid value: Valid value range is empty: 0

and I'm not sure it's from the library

are you get it using the sample app only?

pavel-birdy commented 5 years ago

I am running the sample app. And I just notice I can search but when I tap nothing is happening also not getting the live update like shown in the Gif. 'Unnamed place' everywhere.

Screenshot from 2019-10-21 23-19-14

humazed commented 5 years ago

there are 3 places to but the api key in, in dart code, in android, and in ios native.

pavel-birdy commented 5 years ago

I am not using iPhone so I didn't add api key there. I added inside AndroidManifest.xml and in main.dart I sent these screenshots if I am doing anything wrong. I was trying to debug and when I run on the emulator I succeded to search and navigate to that location but still no update 'Unnamed place' all the time and so many exceptions. I will make a dummy project tomorrow and let you know.

sdasd sdfafsdf

pavel-birdy commented 4 years ago

It's working now. It was related to my billing account. I did something wrong over there. Now it's working. Thanks.