Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error in adding dependencies for firebase-ui-auth

Since it is required to use FirebaseUI Version as per the Firebase/Play Services Version, I am adding:

compile 'com.google.firebase:firebase-core:10.2.1'
compile 'com.google.firebase:firebase-auth:10.2.1'
compile 'com.firebaseui:firebase-ui-auth:1.2.0'

and the only play services available for the app is:

 compile 'com.google.android.gms:play-services-auth:10.2.1'

but Firebase UI libraries (1.2.0) still have a dependency on versions 10.2.0 of various play service libraries: https://github.com/firebase/FirebaseUI-Android.

These are the latest versions of all the dependencies, but it's failed to resolve in Studio.

Need some help! Thanks in advance :)

like image 396
Khushbu Suryavanshi Avatar asked Mar 30 '17 11:03

Khushbu Suryavanshi


People also ask

How do I use a newer version of a firebaseui dependency?

If you would like to use a newer version of one of FirebaseUI's transitive dependencies, such as Firebase, Play services, or the Android support libraries, you need to add explicit implementation declarations in your build.gradle for all of FirebaseUI's dependencies at the version you want to use.

How do I add Firebase authentication to my Android project?

If you haven't already, add Firebase to your Android project. Using the Firebase Android BoM , declare the dependency for the Firebase Authentication Android library in your module (app-level) Gradle file (usually app/build.gradle ). By using the Firebase Android BoM , your app will always use compatible versions of the Firebase Android libraries.

What version of Firebase do I need for my Android app?

By using the Firebase Android BoM , your app will always use compatible versions of the Firebase Android libraries. If you choose not to use the Firebase BoM, you must specify each Firebase library version in its dependency line.

Why can't I authenticate the Admin SDKs with a firebase credential?

The credential used to initialize the Admin SDK has insufficient permission to access the requested Authentication resource. Refer to Set up a Firebase project for documentation on how to generate a credential with appropriate permissions and use it to authenticate the Admin SDKs.


1 Answers

Change

compile 'com.google.android.gms:play-services-auth:10.2.1'

to

compile 'com.google.android.gms:play-services-auth:10.0.1'

It works for me

Original answer

like image 101
Curio Avatar answered Oct 21 '22 09:10

Curio