Unable to resolve google-service dependency

574 views
Skip to first unread message

Muhammad Farrukh Faizy

unread,
May 20, 2016, 7:39:40 PM5/20/16
to Firebase Google Group

Why i am getting this error ,i have these dependencies 

In Project:Gradle

 dependencies {
    classpath 'com.android.tools.build:gradle:2.1.0'
    classpath 'com.google.gms:google-services:3.0.0'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

In App:Gradle

    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.google.firebase:firebase-core:9.0.0'
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
}

// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'


Kato Richardson

unread,
May 20, 2016, 11:08:58 PM5/20/16
to Firebase Google Group
Hi Muhammad,

I'm pretty sure that it's not complaining that you don't have the dependencies, but that the file, google-services.json, does not exist at one of those paths.

It looks like that's covered in Step 2 of Add Firebase to Your App, which links you to this page, explaining how to obtain it.

I hope that helps!

☼, Kato



--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/cb9bb5d7-91c0-4ae0-8ba1-76454b3d3006%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages