title: Android Firebase not Implementing Properly
body: <p>In my <strong>Project build.gradle</strong> i added these lines</p>
  
  <pre><code>buildscript {
    ...
      dependencies {
          ...
          classpath 'com.google.gms:google-services:3.1.1'
          ...
      }
  }
  allprojects {
      repositories {  
          ...
          maven {
              url "https://maven.google.com"
          }
          ...
      }
  }
  </code></pre>
  
  <p>and in my <strong>app build.gradle</strong></p>
  
  <pre><code>dependencies {
  //firebase
      implementation 'com.google.firebase:firebase-ads:11.8.0'
      ...
  }
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>every thing is fine, gradle sync without warning or any errors, but am not able to use any of the <em>firebase-ads</em> library classes i can't find them it's like i never added that dependency even i manually types <strong><em>com.google.android.gms.</em></strong> and there is no package called <strong><em>ads</em></strong></p>
  
  <p>even in .xml files i added an <strong>AdView</strong> when i press <strong>Ctrl</strong> and hover over the class name, all packages get highlighted untill <strong>gms</strong>, the <strong>ads</strong> and <strong>adView</strong> dosen't get highlighted.</p>
  
  <p><a href="https://i.stack.imgur.com/CiEOD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CiEOD.png" alt="highlight"></a></p>
  
  <p>i restarted Android studio,invalidate the cache, sync gradle with and without firebase-ads dependency, removed the library cache from .gradle file, nothing worked.... am i missing something?</p>