0

I was trying to add Google map V2 in my application: I had add all permissions in manifest files ie.:

  <uses-permission android:name="android.permission.INTERNET" /> 
  <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> 
  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 
  <uses-permission android:name="com.example.app_name.permission.MAPS_RECEIVE" /> 
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
  <permission android:name="com.example.app_name.permission.MAPS_RECEIVE" 
      android:protectionLevel="signature" /> 
    <uses-feature android:glEsVersion="0x00020000" android:required="true" /> 

and Add Google play Library

but I get an error of Failed to connect with Google Server, please help me

Anchal Radhwani
  • 156
  • 1
  • 15

2 Answers2

1

Check the following:

-did you include the Maps-v2 library project?

-did you get the example work? (found under /extras/google/google_play_services/samples/map)

-did you use an appropriate MapFragment?

-is your Maps API Key working? (or did you use a debug key?)

Check

https://developers.google.com/maps/documentation/android/ and

http://www.tutos-android.com/introduction-a-google-map-v2

for more informations.

Maybe you do have some log output or further informations about the problem, that'll be great.

cheers

Thkru
  • 4,218
  • 2
  • 18
  • 37
0

First look at those posts

http://developer.android.com/google/play-services/maps.html

http://www.tutos-android.com/introduction-a-google-map-v2

http://blog.rolandl.fr/1230-android-la-geolocalisation-et-lapi-google-maps-android-v2

http://www.vogella.com/articles/AndroidGoogleMaps/article.html

Do you have a debug api key ? Did you had the good package name in the google map API console ?

An-droid
  • 6,433
  • 9
  • 48
  • 93