efortuna / memechat

a meme-based chat application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firebase Token retrieval failed: AUTHENTICATION_FAILED

kittlsk opened this issue · comments

Hello there,

I'm a Flutter newbie. I've followed the instructions and it works perfectly in iOS simulator but not my Pixel 2 API 28 simulator and the following error shows:

Kitts-MacBook-Pro:memechat-master kittlee$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.13.6 17G5019, locale en-MY)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] Connected device (1 available)

• No issues found!
Kitts-MacBook-Pro:memechat-master kittlee$ flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts,
consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 1.1s
Resolving dependencies... 2.8s
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 2.8s
Built build/app/outputs/apk/debug/app-debug.apk.
E/FirebaseInstanceId( 6227): Token retrieval failed: AUTHENTICATION_FAILED
I/FA ( 6227): Tag Manager is not found and thus will not be used
W/ompany.memecha( 6227): Unsupported class loader
W/DynamiteModule( 6227): Local module descriptor class for com.google.firebase.auth not found.
W/BiChannelGoogleApi( 6227): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@b9a068f
W/DynamiteModule( 6227): Local module descriptor class for com.google.firebase.auth not found.
I/FirebaseAuth( 6227): [FirebaseAuth:] Loading module via FirebaseOptions.
I/FirebaseAuth( 6227): [FirebaseAuth:] Preparing to create service connection to gms implementation
D/ ( 6227): HostConnection::get() New Host Connection established 0xe71fc0c0, tid 6257
D/EGL_emulation( 6227): eglMakeCurrent: 0xe71b9360: ver 3 0 (tinfo 0xe6518f00)
2,198ms (!) 🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R". An Observatory debugger and profiler on Android SDK built for x86 is available at:
http://127.0.0.1:54646/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
W/ActivityThread( 6227): handleWindowVisibility: no activity for token android.os.BinderProxy@fa1f8d9
D/EGL_emulation( 6227): eglMakeCurrent: 0xe9185c60: ver 3 0 (tinfo 0xd33e6050)
W/IInputConnectionWrapper( 6227): endBatchEdit on inactive InputConnection
W/IInputConnectionWrapper( 6227): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper( 6227): endBatchEdit on inactive InputConnection
E/FirebaseInstanceId( 6227): Token retrieval failed: AUTHENTICATION_FAILED
D/EGL_emulation( 6227): eglMakeCurrent: 0xe9185c60: ver 3 0 (tinfo 0xd33e6050)


I then tried to use API 24 and the AUTHENTICATION_FAILED is gone but my google play service is outdated.

Kitts-MacBook-Pro:memechat-master kittlee$ flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts,
consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 1.3s
Resolving dependencies... 2.7s
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 3.2s
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk... 3.4s
I/Choreographer( 4501): Skipped 39 frames! The application may be doing too much work on its main thread.
D/EGL_emulation( 4501): eglMakeCurrent: 0xb1505d80: ver 2 0 (tinfo 0xb1503f20)
I/FA ( 4501): This instance being marked as an uploader
W/System ( 4501): ClassLoader referenced unknown path: /system/priv-app/PrebuiltGmsCore/lib/x86
W/GooglePlayServicesUtil( 4501): Google Play services out of date. Requires 12451000 but found 11743470
W/GooglePlayServicesUtil( 4501): Google Play services out of date. Requires 12451000 but found 11743470
W/DynamiteModule( 4501): Local module descriptor class for com.google.firebase.auth not found.
W/BiChannelGoogleApi( 4501): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@1e95d54
W/DynamiteModule( 4501): Local module descriptor class for com.google.firebase.auth not found.
W/GooglePlayServicesUtil( 4501): Google Play services out of date. Requires 12451000 but found 11743470
W/DynamiteModule( 4501): Local module descriptor class for com.google.firebase.auth not found.
W/GooglePlayServicesUtil( 4501): Google Play services out of date. Requires 12451000 but found 11743470
D/EGL_emulation( 4501): eglMakeCurrent: 0xad8859a0: ver 2 0 (tinfo 0x9411b000) Syncing files to device Android SDK built for x86... 3,365ms (!) 🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R". An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:54979/ For a more detailed help message, press "h". To detach, press "d"; to quit, press "q". W/IInputConnectionWrapper( 4501): getTextBeforeCursor on inactive InputConnection W/IInputConnectionWrapper( 4501): getTextBeforeCursor on inactive InputConnection


Does anyone encounter the same problem with Android simulator?

There may be issues with Android Emulator. Try logging into play services first in the emulator.

Another try is to use a physical device.

I think this is mainly related to the packages being 2+ years old. See #41