title: How to add the correct admob or adview dependency to an Android app
body: <p>I'm developing an app and I want to add an admob banner add to it. I asked the permissions in the manifest file for Internet and for the network state. Then I added the dependency for admob. After entering the dependency to the gradle file, the app in my phone app crashes during testing.</p>
  
  <p>It happens when I add the dependency. I want to find the correct dependency or some how fix this if this happens because of another reason.</p>
  
  <p>Here are the dependencies I added:</p>
  
  <pre><code>dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'androidx.appcompat:appcompat:1.0.2'
      implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'androidx.test.ext:junit:1.1.0'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
      implementation 'androidx.cardview:cardview:1.0.0'
      implementation 'com.google.android.gms:play-services-ads:18.3.0'
  }
  </code></pre>