How to create a simple google maps address search with autocomplete in flutter and get latitude and longitude?

You can use flutter_google_places plugin which shows the places in the autocomplete list as you type it and also returns lat and long of the place/address selected. ===== Working code ======= Add flutter_google_places plugin and import it in your dart file. Add geo_coder plugin and import it in same dart file. (Required to access geocoding … Read more

java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable in android

See the answer here: Google Maps Android API v2 – Sample Code crashes While the question lists a different exception, the answer specifically mentions your exact problem. Specifically, it’s important to import google-play-services_lib as a project: Select File > Import > Android > Existing Android Code Into Workspace and click Next. Select Browse…, enter [android-sdk-folder]/extras/google/google_play_services/libproject/google-play-services_lib, … Read more