E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED

10,823 views
Skip to first unread message

andrew.ric...@gmail.com

unread,
Dec 11, 2017, 6:45:18 PM12/11/17
to Firebase Google Group

So I'm relatively new to developing Android applications, this is the first time I've attempted to use Firebase for Authentication, and as of right now I am using createUserWithEmailAndPassword and signInWithEmailAndPassword. Up to this point its been very depressing I have to pray each time I run the application hoping it will communicate with Firebase and its been about 50/50 with no modifications to the project. But the latest series of issues haven't gone away. These are the issues I suspect are preventing any connection to Firebase.


12-11 04:40:15.595 4293-4293/com.tcdata.andrewrichardson.chefevandroidapplication W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms
12-11 04:40:15.706 4293-4330/com.tcdata.andrewrichardson.chefevandroidapplication D/EGL_emulation: eglMakeCurrent: 0xa56040c0: ver 2 0 (tinfo 0xa5603400)
12-11 04:40:16.454 4293-4330/com.tcdata.andrewrichardson.chefevandroidapplication I/chatty: uid=10085(u0_a85) RenderThread identical 17 lines
12-11 04:40:16.492 4293-4330/com.tcdata.andrewrichardson.chefevandroidapplication D/EGL_emulation: eglMakeCurrent: 0xa56040c0: ver 2 0 (tinfo 0xa5603400)
12-11 04:40:27.164 4293-4323/com.tcdata.andrewrichardson.chefevandroidapplication E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED
12-11 04:40:55.762 4293-4330/com.tcdata.andrewrichardson.chefevandroidapplication D/EGL_emulation: eglMakeCurrent: 0xa56040c0: ver 2 0 (tinfo 0xa5603400)


I have spent days scowering through posts on here looking for similar issues but have come up empty in trying to remedy them. I have been attempting to use multiple emulators but try to use a Pixel 2 XL W/ API 26 and Target Android 8.0 (Google APIs). Google Play Services version 11.7.43. SDK Manager in Android Studios shows no updates and I've not found a way to update Google Play Services on the emulator. I am also using Android Studio 3.0.1



My Project/build.gradle:



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript
{

    repositories
{
        google
()
        jcenter
()
   
}
    dependencies
{
        classpath
'com.android.tools.build:gradle:3.0.1'
        classpath
'com.google.gms:google-services:3.1.1'


       
// NOTE: Do not place your application dependencies here; they belong
       
// in the individual module build.gradle files
   
}
}

allprojects
{
    repositories
{
        google
()
        maven
{ url "https://maven.google.com" }
        jcenter
()
   
}
}

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



My App/build.gradle:



apply plugin: 'com.android.application'

android
{
    compileSdkVersion
26
    buildToolsVersion
"26.0.2"
    defaultConfig
{
        applicationId
"com.tcdata.andrewrichardson.chefevandroidapplication"
        minSdkVersion
15
        targetSdkVersion
26
        versionCode
1
        versionName
"1.0"
        testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables
.useSupportLibrary = true
   
}
    buildTypes
{
        release
{
            minifyEnabled
false
            proguardFiles getDefaultProguardFile
('proguard-android.txt'), 'proguard-rules.pro'
       
}
   
}
}

dependencies
{
    compile fileTree
(dir: 'libs', include: ['*.jar'])
    androidTestCompile
('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude
group: 'com.android.support', module: 'support-annotations'
   
})

    compile
'com.google.firebase:firebase-auth:11.6.2'
    compile
'com.google.firebase:firebase-database:11.6.2'
    compile
'com.google.firebase:firebase-core:11.6.2'
    compile
'com.google.android.gms:play-services-auth:11.6.2'
    compile
'com.android.support:appcompat-v7:26.+'
    compile
'com.android.support.constraint:constraint-layout:1.0.2'
    compile
'info.hoang8f:fbutton:1.0.5'
    compile
'com.rengwuxian.materialedittext:library:2.1.4'
    compile
'com.android.support:design:26.+'
    compile
'com.android.support:cardview-v7:26.+'
    compile
'com.android.support:recyclerview-v7:26.+'
    compile
'com.squareup.picasso:picasso:2.5.2'
    compile
'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
    compile
'com.readystatesoftware.sqliteasset:sqliteassethelper:+'
    testCompile
'junit:junit:4.12'
}
apply plugin
: 'com.google.gms.google-services'





Any help would be greatly appreciated.


Ian Barber

unread,
Dec 12, 2017, 12:07:16 PM12/12/17
to Firebase Google Group
The error there I see looks like InstanceID - what failures are you seeing from the email auth? InstanceID shouldn't block the firebase auth calls afaiu. 

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/2ad129d5-7dd8-43fc-94cc-97c985b61910%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

andrew.ric...@gmail.com

unread,
Dec 12, 2017, 5:15:33 PM12/12/17
to Firebase Google Group
12-12 16:19:40.788 2868-2868/? W/zygote: Unexpected CPU variant for X86 using defaults: x86
12-12 16:19:41.002 2868-2875/? E/zygote: Failed sending reply to debugger: Broken pipe
12-12 16:19:41.003 2868-2875/? I/zygote: Debugger is no longer active
12-12 16:19:41.389 2868-2868/? W/zygote: Skipping duplicate class check due to unrecognized classloader
12-12 16:19:41.391 2868-2868/? W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.

12-11 04:40:15.595 4293-4293/com.tcdata.andrewrichardson.chefevandroidapplication W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms

Here are additional results I'm getting, when I submit a registration request it eventually times out and the email/password combination never reach firebase
Reply all
Reply to author
Forward
0 new messages