Failed to resolve: com.google.firebase:firebase-au

2019-02-14 03:56发布

问题:

This question already has an answer here:

  • Failed to resolve: com.google.firebase:firebase-analytics:9.0.0 [duplicate] 2 answers

As per Firebase codelab Android tutorial,while adding com.google.firebase:firebase-auth:9.0.0 in build.gradle dependencies, getting below error:

Error:(28, 13) Failed to resolve: com.google.firebase:firebase-auth:9.0.0

See below screenshot:

回答1:

The 9.0.0 version of Firebase was built using Google Play services 9.0

While adding compile 'com.google.android.gms:play-services:9.0.0' into my build.gradle, gradle sync successfully.

I found my answer here.