错误getGoogleAppId失败,状态为:10

时间:2016-02-16 10:22:10

标签: android google-maps android-studio

我使用Android Studio制作了一个Android程序。当我运行该程序时,出现错误“02-16 14:59:31.715 17216-17249 / com.anastasia.voicemap E / GMPM:getGoogleAppId失败,状态为:10”。

调用显示地图的功能时会出现此错误。

我得到了最充分的错误:

02-16 14:59:31.715 17216-17249/com.anastasia.voicemap E/GMPM: getGoogleAppId failed with status: 10    
02-16 14:59:31.715 17216-17249/com.anastasia.voicemap E/GMPM: Uploading is not possible. App measurement disabled  
02-16 14:59:48.665 17216-17408/com.anastasia.voicemap E/b: Authentication failed on the server.
02-16 14:59:48.665 17216-17408/com.anastasia.voicemap E/Google Maps Android API: Authorization failure.  Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.  
02-16 14:59:48.685 17216-17408/com.anastasia.voicemap E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)  
02-16 14:59:48.685 17216-17408/com.anastasia.voicemap E/Google Maps Android API: Ensure that the "Google Maps Android API v2" is enabled.  
02-16 14:59:48.685 17216-17408/com.anastasia.voicemap E/Google Maps Android API: Ensure that the following Android Key exists:  
02-16 14:59:48.685 17216-17408/com.anastasia.voicemap E/Google Maps Android API:    API Key: AlzaSyAG6cQ7UQ39oYzoXAMJEUIo3F--wKAsyB8  
02-16 14:59:48.685 17216-17408/com.anastasia.voicemap E/Google Maps Android API:    Android Application (<cert_fingerprint>;<package_name>): C0:8A:92:85:63:3B:90:F8:04:A5:F8:07:46:C1:31:78:F7:C9:2D:5B;com.anastasia.voicemap  
02-16 15:00:01.595 17216-17216/com.anastasia.voicemap E/WhetstoneSDK-JNI: on Load native Whetstone

提前致谢!
阿贡

3 个答案:

答案 0 :(得分:0)

您需要检查开发人员控制台中是否启用了Google Maps Android API。如果是,请检查您是否将Android API密钥放在google_maps_api.xml

答案 1 :(得分:0)

当我的网络无法访问Google服务时出现此错误。 Play商店,Gmail和Google搜索无法访问,但有互联网连接。 显示此错误时,请检查您对Google服务的访问权限。

答案 2 :(得分:0)

你必须上网, 它应该在你安装/启动你的应用程序时,当你从服务器访问任何服务时,你必须有互联网。