and-nd-firebase
and-nd-firebase copied to clipboard
Issue when adding compile 'com.firebaseui:firebase-ui-auth:1.0.1'
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 ?
Can u list the other gradle files for firebsase, because there are compatibility issue between the compile version of the library
@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.
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'