Alternatively, follow these steps to get an API key:
Go to the Google API Console.
Create or select a project.
Click Continue to enable the API.
Go to Credentials to get an Android key and set the API credentials.
Note: If you have an existing Android key, you may use that key.
In the resulting dialog, enter your app’s SHA-1 fingerprint and package name. For example:
Your new Android key appears in the list of API keys for your project. An API key is a string of characters, something like this:
You can also look up an existing key in the Google API Console.
For more information, see API Console Help.