地图 Android API: 授权失败
Maps Android API: Authorization failure
和我类似的问题有很多。我把它们都看了一遍(我希望)。我也认为我做的一切都很好。 Maps v2
一直工作到 Google Services
上次更新为 Rev 25
我得到:
E/Google Maps Android API﹕ Authorization failure
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: AIzaSyB...
关键匹配。下一个:
Android Application (<cert_fingerprint>;<package_name>): 87:60:41:37...;com.example.example
证书匹配
所以一切都匹配,但我仍然得到 Authorization failure
AndroidManifest
<meta-data
android:name="com.google.android.gms.version"
android:value="7571000" />
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
gradle-应用程序:
dependencies {
compile 'com.google.android.gms:play-services-location:7.5.0'
compile 'com.google.android.gms:play-services-maps:7.5.0'
compile 'com.google.android.gms:play-services-gcm:7.5.0'
}
我还多次重新编译并重新安装了该应用程序
Delete older key and generate new key. Hope it helps!!
答案仅基于评论。
和我类似的问题有很多。我把它们都看了一遍(我希望)。我也认为我做的一切都很好。 Maps v2
一直工作到 Google Services
上次更新为 Rev 25
我得到:
E/Google Maps Android API﹕ Authorization failure
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: AIzaSyB...
关键匹配。下一个:
Android Application (<cert_fingerprint>;<package_name>): 87:60:41:37...;com.example.example
所以一切都匹配,但我仍然得到 Authorization failure
AndroidManifest
<meta-data
android:name="com.google.android.gms.version"
android:value="7571000" />
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
gradle-应用程序:
dependencies {
compile 'com.google.android.gms:play-services-location:7.5.0'
compile 'com.google.android.gms:play-services-maps:7.5.0'
compile 'com.google.android.gms:play-services-gcm:7.5.0'
}
我还多次重新编译并重新安装了该应用程序
Delete older key and generate new key. Hope it helps!!
答案仅基于评论。