-
Get your API KEY here https://developers.google.com/maps/documentation/android-sdk/get-api-key
-
Don't forget to activate Maps SDK for Android and Places API
-
Add this dependencies in pubspec.yaml.
Note: Please update the version if its outdatedflutter_google_places: 0.2.3 google_maps_webservice: 0.0.14 geocoder: 0.2.1 google_maps_flutter: ^0.4.0 location: ^1.4.1
-
Add this line of code inside AndroidManifest.xml (inside )
<meta-data android:name="com.google.android.geo.API_KEY" android:value="YOUR_API_KEY"/>
-
Add this line of code inside AndroidManifest.xml (inside )
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
-
Add dependency in build.gradle (Module gradle).
Note: Please update the version if its outdatedimplementation 'com.google.android.gms:play-services-maps:16.1.0'