有很多类似于我的问题。我完全超越了他们(我希望)。此外,我认为我做的一切都很好。 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'
}
我也重新编译并重新安装了应用程序
答案 0 :(得分:4)
Delete older key and generate new key. Hope it helps!!
答案仅基于评论。