To get debug keystore simply type this
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
You will see an output below:
Go to Google Console site. Click here and login to your account.
Tap Add a project name. Any name can do then after, press Create button. Wait for it to finish creating the project.
Once it is done, tap Credentials button then select API Key
Then a popup will show the press Close button
You will see the details below. Click the Entry API Key 1 or any name provided as shown in the red highlight below.
Now, select Android Apps. Provide the package name and the SHA1 you generate awhile ago and then tap Save button.
The package name is found inside the AndroidManifest.xml as shown below
The release keystore is used when you will be uploading the APK for playstore. To create a keystore, Open Android Studio, Build Menu > Generate Signed APK a popup will show as shown below.
On the next popup, fill in all textbox. Provide the required information as shown in figure. Your key should be valid for at least 25 years, so you can sign app updates with the same key through the lifespan of your app.
When you reached at this part, cancel it already since you create the keystore for release.
keytool -list -v -keystore your_keystore_name -alias your_alias_name
Replace your_keystore_name with the fully-qualified path and name of the keystore, including the .jks extension.
Replace your_alias_name with the alias that you assigned to the certificate when you created it.
Once you got the SHA1, paste it by adding a new fingerprint in the Google Developer console
The MAPS API KEY found in the credentials page in the Google API Console
Then you are done. Congrats!!