title: Android : Firestore component is not present
body: <p>I have seen the existing questions raised for <code>flutter</code> projects but those solutions don't work for <code>native</code> Android development using the android studio.</p>
  
  <p>Here's my project level Gradle <code>project/build.gradle</code></p>
  
  <pre><code>buildscript {
  
      repositories {
          google()
          jcenter()
          maven {
              url 'https://maven.fabric.io/public'
          }
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.4.2'
          classpath 'com.google.gms:google-services:4.3.0'
          classpath 'io.fabric.tools:gradle:1.31.0'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          maven {
              url  "http://dl.bintray.com/piasy/maven"
          }
          maven { url 'https://jitpack.io' }
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>App-level gradle has the following <code>app/build.gradle</code></p>
  
  <pre><code>   implementation 'com.google.firebase:firebase-core:17.0.1'
      implementation 'com.google.firebase:firebase-analytics:17.0.1'
      implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
  
      implementation 'com.google.firebase:firebase-ads:18.1.1'
      implementation 'com.google.firebase:firebase-firestore:20.2.0'
      implementation 'com.google.firebase:firebase-messaging:19.0.1'
  </code></pre>
  
  <p>and <code>gradle.properies</code></p>
  
  <pre><code>android.enableJetifier=true
  android.useAndroidX=true
  </code></pre>
  
  <p>Initialized <code>Firestore</code> in application</p>
  
  <pre><code>FirebaseApp.initializeApp(this);
  </code></pre>
  
  <p>In my activity</p>
  
  <pre><code>db = FirebaseFirestore.getInstance();
          FirebaseFirestoreSettings settings = new FirebaseFirestoreSettings.Builder()
                  .setPersistenceEnabled(true)
                  .build();
  
          db.setFirestoreSettings(settings);
  </code></pre>
  
  <p>I'm using the latest gradle version and firebase libraries, so why do I get <code>Firestore component is not present.</code>? Couldn't find proper answer or solution on this.</p>
  
  <p>TIA  </p>