title: How to reolve error gradle sync failed the library being requested by various other libraries?
body: <p>I wanted to implement firestore in my project but after adding the following line my gradle sync is failing </p>
  
  <pre><code>implementation 'com.google.firebase:firebase-firestore:17.1.2'
  </code></pre>
  
  <p>and i am getting the error</p>
  
  <pre><code>Gradle sync failed: The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
          Consult IDE log for more details (Help | Show Log) 
  </code></pre>
  
  <p>what is this error and how to resolve it 
  also the classpath I am using is </p>
  
  <pre><code>classpath 'com.google.gms:google-services:4.1.0'
  </code></pre>