-
使用Android Studio 1.3在本地开发Android应用程序
-
Google Play商店的小型封闭测试一个API密钥针对这个应用注册了两个SHA1密钥 - 一个本地,一个用于发布签名的APK使用我们组织的Android密钥库
-
谷歌 Map 在通过Android Studio连接到PC时在本地工作
-
通过Play商店下载时Google Map 失败会生成带有Google徽标的空白灰色 Map ,并在日志中显示此错误
5967-6038/? E/Google Maps Android API﹕In the Google Developer Console (https://console.developers.google.com)
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: YOUR_KEY_HERE
Android Application (<cert_fingerprint>;<package_name>):
23:C9:76:CA:A6:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:91:9B:80:3F;org.bto.btapp
-
在开发者控制台上注册的SHA1密钥:
-
keytool的输出(本地调试)
-
来自keytool的输出(用于在Play商店测试版上签署APK的发布密钥库)
-
检查了明显的(我使用正确的API密钥)
有任何想法吗?
1 回答
检查您是否在值文件夹中的google_maps_api.xml中粘贴了API密钥 . 从错误日志(我假设),您的API密钥显示为“YOUR_KEY_HERE”,这正是文件中的默认值 . 请检查 .
UPDATE
打开google_maps_api.xml并将您的API密钥粘贴到“YOUR_KEY_HERE” . 那样做 .