Cant add firebase to android app
<p>I want to add firebase to my app for push notifications. I have followed the firebase docs and have done this:</p>

<p>root/app/build.gradle : </p>

<pre><code>dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.google.firebase:firebase-core:9.0.2'
}

apply plugin: 'com.google.gms.google-services'
</code></pre>

<p>root/build.gradle : </p>

<pre><code>dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'
        classpath 'com.google.gms:google-services:3.0.0'
    }
</code></pre>

<p>I have also added the google-services.json in <code>root/app</code> dir.
On trying to sync the project, there is an error :</p>

<blockquote>
  <p>Error:(25, 13) Failed to resolve:
  com.google.firebase:firebase-core:9.0.2</p>
</blockquote>

<p>I dont understand why this error is present. How can I resolve it?</p>