Saturday, 15 May 2010

Android Google Map: Failed to load map. Error contacting Google servers -



Android Google Map: Failed to load map. Error contacting Google servers -

i know there lot of same questions out there. have read them , tried answers, mine still not working.

error message:

e/google maps android api﹕ failed load map. error contacting google servers. authentication issue (but due network errors).

i'm trying run google map android sample code in /extras/google/google_play_services/samples.

i'm using android studio, , keystore generated android studio. in developer's console, enabled both google maps android api v2 , google play android developer api. when in page generating api key, used sha1 got command line after running

keytool -list -v -keystore "the_keystore_genertated_by_android_studio" -alias "alias"

for bundle name used com.example.mapdemo since in sample code's manifest, says:

package="com.example.mapdemo"

i added

com.google.android.providers.gsf.permission.read_gservices android.permission.access_wifi_state

in manifest.

i'm using nexus 5 wifi.

it's still not working , getting same error.

the api generated public api access. uninstall app , clean android studio , run every time modified manifest.

the total manifest file

i seek generating new api key using sha1 debug keystore in .android directory; called debug.keystore , should located in next directory:

os x , linux: ~/.android/ windows vista , windows 7: c:\users\your_user_name\.android\

once locate can sha1 next command:

os x , linux: keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

windows vista , windows 7: keytool -list -v -keystore "%userprofile%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

android google-maps google-maps-android-api-2

No comments:

Post a Comment