and-nd-firebase icon indicating copy to clipboard operation
and-nd-firebase copied to clipboard

Issue when adding compile 'com.firebaseui:firebase-ui-auth:1.0.1'

Open engr-erum opened this issue 8 years ago • 3 comments

i am using AS-2.1.2 everything is ok but when adding this compile 'com.firebaseui:firebase-ui-auth:1.0.1' i m getting error

Error:Failed to resolve: com.android.support:support-v4:25.0.0 Install Repository and sync project
Open File
Show in Project Structure dialog

can someone pls help me what's the issue ?

engr-erum avatar Dec 13 '16 12:12 engr-erum

Can u list the other gradle files for firebsase, because there are compatibility issue between the compile version of the library

hassansw avatar Dec 21 '16 17:12 hassansw

@engr-erum Because the error is about support library 25.0.0, it sounds like you need to update the Android Support Library in your SDK Manager. Check out this Stack Overflow question about the same problem.

danielmai avatar Dec 22 '16 20:12 danielmai

In top-level build.gradle add this google() in sequence:

buildscript { repositories { google() jcenter() mavenLocal() } dependencies { classpath 'com.android.tools.build:gradle:3.1.3' classpath 'com.google.gms:google-services:4.0.1' } }

allprojects { repositories { google() jcenter() mavenLocal() } }

task clean(type: Delete) { delete rootProject.buildDir }

In app-level build gradle add firebase-core in dependencies:

implementation 'com.google.firebase:firebase-core:16.0.0' implementation 'com.google.firebase:firebase-database:16.0.1' implementation 'com.google.firebase:firebase-auth:16.0.1' implementation 'com.firebaseui:firebase-ui-auth:4.0.1'

aditya08jaiswal avatar Jun 11 '18 18:06 aditya08jaiswal