Click here to Skip to main content
15,041,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing an android app that allow users to login and registration before accessing the app content. I decided to use firebase authentication of email and password, when i tested the app in the emulator and real device it crashed and outputs the following error message in the logcat
<06-05 21:22:17.899 3595-3611/com.xplaincap E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED
06-05 21:23:28.180 3595-3595/com.xplaincap D/AndroidRuntime: Shutting down VM
06-05 21:23:28.181 3595-3595/com.xplaincap E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.xplaincap, PID: 3595
com.google.android.gms.tasks.RuntimeExecutionException: com.google.firebase.FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred.
at com.google.android.gms.tasks.zzn.getResult(Unknown Source)
at com.xplaincap.RegisterActivity$1$1.onComplete(RegisterActivity.java:75)
at com.google.android.gms.tasks.zzf.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: com.google.firebase.FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred.
at com.google.android.gms.internal.zzdxm.zzao(Unknown Source)
at com.google.android.gms.internal.zzdwn.zza(Unknown Source)
at com.google.android.gms.internal.zzdxx.zzap(Unknown Source)
at com.google.android.gms.internal.zzdya.onFailure(Unknown Source)
at com.google.android.gms.internal.zzdxo.onTransact(Unknown Source)
at android.os.Binder.execTransact(Binder.java:453)
06-05 21:24:20.970 3595-3595/com.xplaincap I/Process: Sending signal. PID: 3595 SIG: 9>
Kindly help

What I have tried:

Have searched google and stackoverflow
Posted
Comments
Richard Deeming 6-Jun-18 16:34pm
   
"A network error (such as timeout, interrupted connection or unreachable host) has occurred"

Your code can't connect to the database you've specified.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900