Ensure that the "Google Maps Android API v2" is enabled. I am getting this error when I try to Implement Google Maps
From error it is clear that You did not enable google map api for android. To enable,
- Login google developer console
- Select Library option from left side panel.
- Now you can see all API list and go to Google Maps APIs and select Google Maps Android API .
- Now you can see option to enable/disable API. Enable it.
I hope it help you.
Actually I had the same problem as well. my application runs and the map is blank!
First of all check whether you have installed Google Play in you android mobile.
actually I had the problem in API Key restrictions
Google Developer Console
- Login to Developer Console.
- In your Dashboard Navigation Menu.(left side)
- Select API & Services > Credentials.
- So you will be redirected to Credentials page were you can view all the API keys that you created (https://console.cloud.google.com/apis/credentials)
- Identify your Project API key and click on Edit Api Key.
- Under that you can see the Key restrictions
- From there remove all Application restrictions and Api restriction.
On your Android Mobile
- Uninstall the App.
Android Studio
- Build > Clean Project.
- Build > Rebuild Project.
- Run IT
This steps worked for me perfectly.
- Reference GitHUb , Google Issue Tracker
I had the same problem, but in the following setup:
My actual developing took place on a Windows machine. Then I bought a Mac and figured I'd develop on it. I installed Android Studio on my Mac, checked out my project from Github, then attempted a run of it using my Android phone. The APK installation carried out seamlessly. However, once the application launched on the phone, the GoogleMap wouldn't display, even though the rest of my app was functioning normally. Then I found this link => https://github.com/react-community/react-native-maps/issues/69, went to my console.developers.google.com/ and opened my Google Maps key that I had issue with.
What I saw was that the key was restricted to Android apps. But I was working on an Android app, how could this be the issue? Anyhow, I switched Key Restriction to None, reran my app, and GoogleMap loaded just as it should had.