defaultConfig {
applicationId "com.google.firebase.udacity.friendlychat"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
//noinspection GradleCompatible
implementation 'com.android.support:design:24.2.0'
implementation 'com.android.support:appcompat-v7:24.2.0'
// Displaying images
implementation 'com.github.bumptech.glide:glide:3.6.1'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
//implementation 'com.firebaseui:firebase-ui-auth:4.2.0'
implementation 'com.firebaseui:firebase-ui-auth:4.2.1'
}
apply plugin: 'com.google.gms.google-services'
Asked
Active
Viewed 325 times
1

Jaymin
- 2,879
- 3
- 19
- 35

Sherif Abo zaid
- 25
- 5
-
https://github.com/firebase/FirebaseUI-Android/tree/master/auth You are using ui-auth need some extra configuration check UI-Auth doc. – Naeem Ibrahim Oct 25 '18 at 12:20
-
i tryed it but not working else – Sherif Abo zaid Oct 25 '18 at 12:21
-
https://stackoverflow.com/questions/41407811/android-vectordrawables-usesupportlibrary-true-is-stopping-app Try this. – Naeem Ibrahim Oct 25 '18 at 12:24
-
Update your version to latest and remove this //noinspection GradleCompatible – Naeem Ibrahim Oct 25 '18 at 12:27
-
i updated version and delete //noinspection GradleCompatible , didnt work – Sherif Abo zaid Oct 25 '18 at 13:16
1 Answers
0
To solve this, please change the following lines of code:
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.5' //There is not 16.0.5 version yet
to
implementation 'com.google.firebase:firebase-database:16.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.4'
And also make sure to have in your top level buil.gradle file:
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.1.0'

Alex Mamo
- 130,605
- 17
- 163
- 193