title: Android Google Map: Failed to load map. Error contacting Google servers
body: <p>I know there are a lot of same questions out there. I have read them and tried the answers, but mine is still not working.</p>
  
  <p>Error Message:</p>
  
  <p>E/Google Maps Android API﹕ Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).</p>
  
  <p>I'm trying to run the Google Map Android Sample Code in  /extras/google/google_play_services/samples.</p>
  
  <p>I'm using Android Studio, and my KeyStore is generated by Android Studio. 
  In my developer's console, I enabled both Google Maps Android API v2 AND Google Play Android Developer API. When in the page for generating api key, I used the SHA1 I got from command line after running </p>
  
  <p>keytool -list -v -keystore "THE_KEYSTORE_GENERTATED_BY_ANDROID_STUDIO" -alias "ALIAS"</p>
  
  <p>For the package name I used com.example.mapdemo since in the sample code's manifest, it says: </p>
  
  <blockquote>
    <p>package="com.example.mapdemo"</p>
  </blockquote>
  
  <p>I also added </p>
  
  <p>com.google.android.providers.gsf.permission.READ_GSERVICES
   android.permission.ACCESS_WIFI_STATE </p>
  
  <p>in the manifest.</p>
  
  <p>I'm using Nexus 5 with wifi.</p>
  
  <p>It's still not working and getting the same error.</p>
  
  <p>The API I generated is Public API access.
  I uninstall the app and clean it from Android Studio and then run it every time I modified the manifest.</p>
  
  <p><a href="https://docs.google.com/document/d/1J8cB-4pFFuNZNiEEPWzQG0wl3XROqNwkz6F7xgX_1U8/edit?usp=sharing" rel="nofollow"><strong>The full manifest file</strong></a></p>