Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms

well my app working fine getting data from Firebase. but sometimes specially after waiting long time if I open my app again it wont read data from firebase and also it gives this warning at Logcat. until I sing in and sing out it is not working.

W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms

are there any missing lines on my gradle?

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion '26.0.2'
    defaultConfig {
        applicationId "com.restroomgames.whereismydudy.where"
        minSdkVersion 23
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.google.android.gms:play-services-maps:11.6.2'
    implementation 'com.google.firebase:firebase-auth:11.6.2'
    implementation 'com.google.firebase:firebase-database:11.6.2'
    implementation 'com.google.firebase:firebase-messaging:11.6.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation 'com.google.android.gms:play-services-location:11.6.2'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.lapism:searchview:5.0.0-alpha7'
    implementation 'agency.tango.android:material-intro-screen:0.0.5'
    implementation 'com.firebase:geofire-android:2.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
}
apply plugin: 'com.google.gms.google-services'
like image 950
mehmet Avatar asked Dec 04 '25 19:12

mehmet


1 Answers

The code seems ok..

It just happened to me something similar, same warning, problems with email/password auth..

It was because I forgot to update the SHA-1 fingerprints in the project after I upgraded my computer OS..

Maybe is a problem with your API keys or SHA-1 fingerprints in your project?

like image 64
Mario Cristerna Avatar answered Dec 07 '25 07:12

Mario Cristerna