0

I am trying to get google maps in my chat application (like whatsapp) on click of the location icon. But it shows only a light grey screen along with a google tag at bottom. In logcat i can see two errors 1) Google appid failed with status 10. 2) Authentication failed on the server. My application already has one GCM key. I don't think there is any error in generating the googlemap key because google map is visible in another application where i followed same step as of my this application. Please give me some solutions as i am struggling with problem for a week.

Am i required to generate key with some different approach when using both GCM and google maps?? Is this possible that keys are conflicting right now?? Please help me

user3735381
  • 53
  • 1
  • 2
  • 5

2 Answers2

0

According to this issue, one reason that you get error: getGoogleAppId failed with status: 10 is that classpath 'com.google.gms:google-services:1.5.0-beta2' is missing in the dependency in project-level build.gradle and apply plugin: 'com.google.gms.google-services' is missing in the app-level build.gradle.

Check this SO question for more information.

For your issue about the Authentication failed on the server, you can see in this SO question the solution for that problem.

Google Maps has Android key and GCM needs Server key, so you need to register the android key to integrate maps with your application.

Check this documentation on how to configure Google Maps.

Community
  • 1
  • 1
KENdi
  • 7,576
  • 2
  • 16
  • 31
0

The cause of grey screen or black in my case was acceleration option in manifest : android:hardwareAccelerated="false" .

https://code.google.com/p/gmaps-api-issues/issues/detail?id=5767

zhen_khokh
  • 69
  • 1
  • 8