Ensure that the “Google Maps Android API v2” is enabled. I am getting this error when I try to Implement Google Maps

后端 未结 11 1753
执笔经年
执笔经年 2020-11-29 03:39

I am working on google maps and I am getting this error. I had done the following things:

  1. Got My sha1 fingerprint.

  2. Registered my project and

11条回答
  •  清歌不尽
    2020-11-29 04:18

    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.

提交回复
热议问题