Quickstart-android: E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED

Created on 3 Nov 2018  路  1Comment  路  Source: firebase/quickstart-android

I have tried to run real time database example using emulator. When I boot emulator I got this message and application actually crash in java version. I have downloaded the latest revision from GITHUB.
I am using Android Studio 3.2.1 for Mac.

E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED

I can ping the fire database from my machine. So, I think it is not a network issue. Any hints or suggestion will be appreciable. google-services.json is setup correctly. Below are the logs while running emulator,

11/03 21:51:37: Launching app
$ adb install-multiple -r -t /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/split-apk/debug/slices/slice_2.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/split-apk/debug/slices/slice_7.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/split-apk/debug/slices/slice_8.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/split-apk/debug/slices/slice_1.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/split-apk/debug/dep/dependencies.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/split-apk/debug/slices/slice_6.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/split-apk/debug/slices/slice_3.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/split-apk/debug/slices/slice_4.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/split-apk/debug/slices/slice_5.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/split-apk/debug/slices/slice_0.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/split-apk/debug/slices/slice_9.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/resources/instant-run/debug/resources-debug.apk /Users/test/Downloads/quickstart-android-master/database/app/build/intermediates/instant-run-apk/debug/app-debug.apk
Split APKs installed in 9 s 936 ms
$ adb shell am start -n "com.google.firebase.quickstart.database/com.google.firebase.quickstart.database.EntryChoiceActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Connected to process 9751 on device emulator-5554
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/kstart.databas: JIT profile information will not be recorded: profile file does not exits.
I/chatty: uid=10085(com.google.firebase.quickstart.database) identical 10 lines
W/kstart.databas: JIT profile information will not be recorded: profile file does not exits.
V/FA: Registered activity lifecycle callback
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/kstart.databas: Verification of void com.google.android.gms.common.api.internal.zaag.stopAutoManage(android.support.v4.app.FragmentActivity) took 117.646ms
D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
I/FirebaseInitProvider: FirebaseApp initialization successful
I/InstantRun: starting instant run server: is main process
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
V/FA: onActivityCreated
V/FA: Collection enabled
V/FA: App package, google app id: com.google.firebase.quickstart.database, 1:1042598886084:android:fcfef757a832647b
I/FA: App measurement is starting up, version: 13001
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.google.firebase.quickstart.database
D/FA: Debug-level message logging enabled
I/FirebaseAuth: [FirebaseAuth:] Loading module via FirebaseOptions.
[FirebaseAuth:] Preparing to create service connection to gms implementation
W/kstart.databas: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
W/kstart.databas: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
V/FA: Connecting to remote service
D/OpenGLRenderer: Skia GL Pipeline
V/FA: Connection attempt already in progress
I/FA: Tag Manager is not found and thus will not be used
D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=EntryChoiceActivity, firebase_screen_id(_si)=-5687216365099095386}]
D/: HostConnection::get() New Host Connection established 0xdf1abb80, tid 9810
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 4781986
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
D/EGL_emulation: eglCreateContext: 0xdf185720: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0xdf185720: ver 3 0 (tinfo 0xdf1838b0)
I/kstart.databas: Background concurrent copying GC freed 21348(6MB) AllocSpace objects, 5(100KB) LOS objects, 49% free, 1920KB/3MB, paused 1.494ms total 251.158ms
E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED
D/EGL_emulation: eglMakeCurrent: 0xdf185720: ver 3 0 (tinfo 0xdf1838b0)
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 4
V/FA: Session started, time: 4786965
D/FA: Setting user property (FE): _sid
D/FA: Logging event (FE): session_start(_s), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=EntryChoiceActivity, firebase_screen_id(_si)=-5687216365099095386}]
V/FA: Inactivity, disconnecting from the service
E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED
E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED
E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED
E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED

Most helpful comment

I think I found the issue. In my DNS setup search domain was set as "domain.name". I removed that line and then check with a test program other than sample firebase app. Test Program is now updating firebase database.

>All comments

I think I found the issue. In my DNS setup search domain was set as "domain.name". I removed that line and then check with a test program other than sample firebase app. Test Program is now updating firebase database.

Was this page helpful?
0 / 5 - 0 ratings