title: Google Maps API displaying grey screen instead of map view on Android
body: <p>I am trying to display the Google map on Android. When I load the activity i get a grey screen with the Google logo displayed in the bottom left corner. This happens using the virtual emulator and on a real device too. I have tried using a different Api key but get the same problem. I am using the Map activity provided by Android studio.</p>
  
  <p>build.gradle(Module:app)</p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'com.google.gms.google-services'
  
  android {
      compileSdkVersion 28
      defaultConfig {
  
          minSdkVersion 19
          targetSdkVersion 28
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
      implementation 'com.google.firebase:firebase-auth:16.1.0'
      implementation 'com.google.firebase:firebase-database:16.0.1'
      implementation 'com.google.android.gms:play-services-maps:16.0.0'
      implementation 'com.google.android.gms:play-services-location:16.0.0'
  
  }
  </code></pre>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      package=""&gt;
  
      &lt;uses-feature
          android:name="android.hardware.sensor.stepcounter"
          android:required="true" /&gt;
      &lt;uses-feature
          android:name="android.hardware.sensor.stepdetector"
          android:required="true" /&gt;
  
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="com.google.android.providers.gfs.permission.READ_GSERVICES" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:roundIcon="@mipmap/ic_launcher_round"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"
          tools:ignore="GoogleAppIndexingWarning"&gt;
          &lt;activity android:name=".Activities.LandingActivity"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name=".UserAccountActivities.ProfileActivity" /&gt;
  
          &lt;meta-data
              android:name="com.google.android.geo.API_KEY"
              android:value="redacted" /&gt;
  
          &lt;activity
              android:name=".Activities.MapsActivity"
              android:label="@string/title_activity_maps" /&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Logcat in Error mode</p>
  
  <pre><code>01-02 15:06:24.913 17090-17160/E/Google Maps Android API: Authorization failure.  Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
  01-02 15:06:24.923 17090-17160/ E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
      Ensure that the "Google Maps Android API v2" is enabled.
      Ensure that the following Android Key exists:
          API Key: ***
          Android Application (&lt;cert_fingerprint&gt;;&lt;package_name&gt;): ***;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/RLiQg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RLiQg.png" alt="enter image description here"></a></p>