title: Could not find com.google.firebase:firebase-database: 15.0.0
body: <p>I'm developing an app using React-Native and I'm trying to connect it to my Firebase database. When I try to run my code (i.e., react-native run-android), I get the following:</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring project ':app'.
  &gt; Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
     &gt; Could not find com.google.firebase:firebase-database: 15.0.0.
  </code></pre>
  
  <p>I've looked at the solutions proposed in <a href="https://stackoverflow.com/questions/38091687/could-not-find-com-google-firebasefirebase-database9-2-0">Could not find com.google.firebase:firebase-database:9.2.0</a> and <a href="https://stackoverflow.com/questions/46081380/react-native-could-not-find-com-google-firebase">react native Could not find com.google.firebase</a>, but neither have worked for me so far...</p>
  
  <p>Here is my top level build.gradle file:</p>
  
  <pre><code>buildscript {
  repositories {
      jcenter()
  }
  dependencies {
      classpath 'com.android.tools.build:gradle:2.2.3'
      classpath 'com.google.gms:google-services:4.0.0'
  
      // NOTE: Do not place your application dependencies here; they belong
      // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          mavenLocal()
          jcenter()
          maven {
              // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
          url "$rootDir/../node_modules/react-native/android"
      }
      maven { url "https://maven.google.com" }
      maven { url "https://jitpack.io" }
      }
  }
  </code></pre>
  
  <p>Here is part of my app level build.gradle file:</p>
  
  <pre><code>dependencies {
  compile fileTree(dir: "libs", include: ["*.jar"])
  compile "com.android.support:appcompat-v7:23.0.1"
  compile "com.facebook.react:react-native:+"  // From node_modules
  compile "com.google.firebase:firebase-core:15.0.2"
  compile "com.google.firebase:firebase-database: 15.0.0"
  compile "com.google.android.gms:play-services-base:15.0.0"
  
  task copyDownloadableDepsToLibs(type: Copy) {
  from configurations.compile
  into 'libs'
  }
  
  apply plugin: 'com.google.gms.google-services'
  apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
  </code></pre>
  
  <p>How can I fix this issue? Thanks.</p>