title: How can I integrate firebase in a Xamarin project.
body: <p>I am new to Xamarin and trying to integrate firebase SDK in a project. When I am trying to use gradle for pulling the jars I am getting an issue -</p>
  
  <h1>Gradle log:</h1>
  
  <p>FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li><p>Where:
  Build file 'C:\Users\ss-1\AppData\Local\Temp\Xamarin.GradleBindings\91bd26\build.gradle' line: 5</p></li>
  <li><p>What went wrong:
  A problem occurred evaluating root project '91bd26'.</p>
  
  <blockquote>
    <p>Could not resolve all dependencies for configuration 'detachedConfiguration1'.
    Could not find com.google.firebase:firebase-core:9.2.0.
    Searched in the following locations:
        file:/C:/Users/ss-1/AppData/Local/Android/android-sdk/extras/android/m2repository/com/google/firebase/firebase-core/9.2.0/firebase-core-9.2.0.pom
        file:/C:/Users/ss-1/AppData/Local/Android/android-sdk/extras/android/m2repository/com/google/firebase/firebase-core/9.2.0/firebase-core-9.2.0.jar
        <a href="https://jcenter.bintray.com/com/google/firebase/firebase-core/9.2.0/firebase-core-9.2.0.pom" rel="nofollow">https://jcenter.bintray.com/com/google/firebase/firebase-core/9.2.0/firebase-core-9.2.0.pom</a>
        <a href="https://jcenter.bintray.com/com/google/firebase/firebase-core/9.2.0/firebase-core-9.2.0.jar" rel="nofollow">https://jcenter.bintray.com/com/google/firebase/firebase-core/9.2.0/firebase-core-9.2.0.jar</a>
    Required by:
        :91bd26:unspecified</p>
  </blockquote></li>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p></li>
  </ul>
  
  <p>BUILD FAILED</p>
  
  <p>Total time: 8.451 secs</p>
  
  <h1>Original script:</h1>
  
  <p>apply plugin: 'java'</p>
  
  <pre><code>def resolveDependencyString(String dependencyString) {
     def dependency = dependencies.create(dependencyString)
     configurations.detachedConfiguration(dependency).setTransitive(false).resolve()
  }
  
  def resolveDependencyStringTransitive(String dependencyString) {
     def dependency = dependencies.create(dependencyString)
     configurations.detachedConfiguration(dependency).setTransitive(true).resolve()
  }
  
  repositories { 
     maven {
         url "C:/Users/ss-1/AppData/Local/Android/android-sdk/extras/android/m2repository/" //will be replaced by add-in
     }
     jcenter()
  }
  
  task getDeps(type: Copy) {
   def resultFileAll = new File("C:/Users/ss-1/AppData/Local/Temp/Xamarin.GradleBindings/91bd26/result_main.txt")
   def resultFileMain = new File("C:/Users/ss-1/AppData/Local/Temp/Xamarin.GradleBindings/91bd26/result_all.txt")
  </code></pre>
  
  <p>Please let me know, how it can be fixed.</p>
  
  <p>Thank You,
  Prashant</p>