The Google API console
The Google API console is a web portal that allows developers to manage Google services for their project and it can be at https://console.developers.google.com.
- Visit the developer console with your Google account. Create a project
packt-wear
or something that is convenient for developers:
![](https://static.packt-cdn.com/products/9781787123229/graphics/048d43f0-262e-4775-9b33-90d47aaaa1d9.png)
- After creating the project successfully, go to the
API Manager
|Library
section and enable theGoogle Maps Android API
:
![](https://static.packt-cdn.com/products/9781787123229/graphics/201e3102-e172-45b5-8568-4894fb2516f5.png)
- Click on the
Enable
button for enabling Maps for Android:
![](https://static.packt-cdn.com/products/9781787123229/graphics/a00d2f35-bf8b-4c90-a3b8-96d49046774c.png)
- After enabling the API in the console facility, we need to create the API key with the development machine's
SHA1
and the project's package address, as follows:
![](https://static.packt-cdn.com/products/9781787123229/graphics/5a97ab8b-ac2b-4306-aad1-78d8c91c0126.png)
- To get your machine's
SHA1
fingerprint, open Android Studio. On the right-hand side of Android Studio, you will see the Gradle project menu. Then, follow these steps:- Click on
Gradle
(on the right-hand side panel, you will see theGradle
Bar) - Click on
Refresh
(click onRefresh
; on theGradle
Bar, you will see a List of Gradle scripts for your project...
- Click on