title: How to fix Google Maps "Authentication failed on the server"?
body: <p>I have printed my SHA1 key:</p>
  
  <pre><code>keytool -list -v -keystore keystore.jks
  </code></pre>
  
  <p>generated an API key in Google Console,</p>
  
  <p>updated the manifest file as follows:</p>
  
  <pre><code>&lt;meta-data android:name="com.google.android.gms.version"
          android:value="@integer/google_play_services_version" /&gt;
      &lt;meta-data
          android:name="com.google.android.maps.v2.API_KEY"
          android:value="AIzaSyC1YOsomestringsarehiddedLu5_TnCxlyuRM"/&gt;
  </code></pre>
  
  <p>Then I created a simple <code>Activity</code> as in Google Samples:</p>
  
  <pre><code>public class MapActivity extends FragmentActivity implements OnMapReadyCallback {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.map_sample);
  
      SupportMapFragment mapFragment =
              (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
      mapFragment.getMapAsync(this);
  }
  
  @Override
  public void onMapReady(GoogleMap map) {
      map.addMarker(new MarkerOptions().position(new LatLng(0, 0)).title("Marker"));
  }
  </code></pre>
  
  <p>}</p>
  
  <p>And of course I added the activity inside Manifest file. I always get the same error.</p>
  
  <pre><code>Ensure that the following Android Key exists:
  API Key: AIzaSyC1YOn9myapikeystringsxxu5_TnCxlyuRM
  Android Application (&lt;cert_fingerprint&gt;;&lt;package_name&gt;):
  B2:E8:75:4F:01:DD:xx:xx:xx:xx:xx:xx:74:A5:85:2C:A4:38:48;md.mycompany.catalog
  </code></pre>
  
  <p>The strange part is that the SHA1 key which I pasted in Google Console is not the same as the one above. I tried again, and it still shows another SHA1 key. I even tried this SHA1 and still it does not work. </p>
  
  <p>p.s. I have Youtube API integrated in same app, and everything works perfectly, with same KEY.</p>