As soon as the build process is complete, we will see the following resources file screen being opened by default and displayed by Android Studio:
The file is named google_maps_api.xml
by default. The file clearly indicates that before we run our application, we need to get a Google Maps API key. The procedure to get the Google Maps API key for the app is listed in detail.
The key that is generated should be replaced by the placeholderYOUR_KEY_HERE
mentioned in the file:
<resources> <!-- TODO: Before you run your application, you need a Google Maps API key. To get one, follow this link, follow the directions and press "Create" at the end: https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=00:ED:1B:E2:03:B9:2E:F4:A9:0F:25:7A:2F:40:2E:D2:89:96:AD:2D%3Bcom.natarajan.locationalarm You can also add your credentials to an existing key, using these values: Package name: 00:ED:1B:E2...