I'm following this documentation to add FirebaseUI to my project but I have 2 errors (Failed to find provider info for com.google.android.gms.phenotype & Google Play services missing or without correct permission.)
this error occurs when I write that line at the dependencies :
implementation 'com.firebaseui:firebase-ui-auth:4.0.0'
my gradle app :
apply plugin: 'com.android.application'
repositories {
mavenLocal()
flatDir {
dirs 'libs'
}
}
android {
compileSdkVersion 24
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.google.firebase.udacity.friendlychat"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
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 {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
//firebase
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation'com.google.firebase:firebase-database:16.0.1'
implementation'com.google.firebase:firebase-auth:16.0.2'
implementation 'com.firebaseui:firebase-ui-auth:4.0.0' // the problem is here ??
//noinspection GradleCompatible
compile 'com.android.support:design:24.2.0'
compile 'com.android.support:appcompat-v7:24.2.0'
// Displaying images
compile 'com.github.bumptech.glide:glide:3.6.1'
}
apply plugin: 'com.google.gms.google-services'
my gradle project :
buildscript {
repositories {
jcenter()
mavenLocal()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
mavenLocal()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
my logcat :
e08-02 08:48:30.431 8422-8440/com.google.firebase.chat E/ActivityThread: Failed to find provider info for com.google.android.gms.phenotype
08-02 08:48:30.510 8422-8443/com.google.chat E/FirebaseInstanceId: Google Play services missing or without correct permission.
08-02 08:48:30.550 8422-8443/com.google.chat E/FirebaseInstanceId: Google Play services missing or without correct permission.
08-02 08:48:30.927 8422-8445/com.google.chat E/ActivityThread: Failed to find provider info for com.google.android.gms.chimera
08-02 08:48:31.079 8422-8443/com.google.chat E/FirebaseInstanceId: Google Play services missing or without correct permission.
08-02 08:48:41.128 8422-8443/com.google.chat E/FirebaseInstanceId: Google Play services missing or without correct permission.