0

I use google map in project, but it is dont work rightly. I have registred Google map Api Key in google services and add in my project AndroidManifest.xml

<meta-data
    android:name="com.google.android.maps.v2.API_KEY"
    android:value=" Api key" />

But it is don't show map you can see it in this picture: enter image description here

When i run my app, in tab Anroid Monitor of Android Studio i have this error:

enter image description here

I can't find resolve.

and in Api monitor i have this error too, when i open app

java.io.IOException: Server returned: 3
aimprogman
  • 294
  • 2
  • 3
  • 16

2 Answers2

0

Did you added play-services dependency in gradle file?

Arpit Prajapati
  • 367
  • 2
  • 16
0

If Possible change your play-service dependency and set dependency based on building tools installed or api installed, like following way

From

compile 'com.google.android.gms:play-services-maps:10.0.1'

To

compile 'com.google.android.gms:play-services-maps:10.2.1'
Dhaval Solanki
  • 4,589
  • 1
  • 23
  • 39
  • it is my defaultConfig { applicationId "com.packageName" minSdkVersion 8 targetSdkVersion 8 } I can't use compile 'com.google.android.gms:play-services-maps:10.2.1' – aimprogman Aug 25 '17 at 04:38
  • First change your target version which very low, Then put your dependancy part – Dhaval Solanki Aug 25 '17 at 04:39
  • I have do it, but i have error: W/ResourcesManager: Asset path '/system/framework/com.google.android.maps.jar' does not exist or contains no resources AND this java.io.IOException: Server returned: 3 – aimprogman Aug 25 '17 at 04:41
  • Yes you can use. – Dhaval Solanki Aug 25 '17 at 04:44
  • Why are you guessing which version was used? @aimp Please explain why you think those errors prevent you from using a different version of the library? The latest being 11.2.0, so I don't know why anything older than that is suggested for a new app – OneCricketeer Aug 25 '17 at 11:38
  • @cricket_007 I am suggesting just because Issue related google com.google.map.jar not found in exception so possibility to issue by play-service or sdk. – Dhaval Solanki Aug 25 '17 at 12:27