T
T
timonestudio2021-09-02 20:11:42
Java
timonestudio, 2021-09-02 20:11:42

What's wrong with FireBase authentication?

help plz:
logcat:

Process: ru.pbm.extramoney, PID: 26247
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=123, result=-1, data=Intent { (has extras) }} to activity {ru.pbm.extramoney/ru.pbm.extramoney.MainActivity}: java.lang.IllegalArgumentException: Must specify an idToken or an accessToken.
        at android.app.ActivityThread.deliverResults(ActivityThread.java:5015)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:5056)
        at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
     Caused by: java.lang.IllegalArgumentException: Must specify an idToken or an accessToken.
        at com.google.firebase.auth.GoogleAuthCredential.<init>(com.google.firebase:[email protected]@21.0.1:6)
        at com.google.firebase.auth.GoogleAuthProvider.getCredential(com.google.firebase:[email protected]@21.0.1:1)
        at ru.pbm.extramoney.MainActivity.firebaseAuthWithGoogle(MainActivity.java:92)
        at ru.pbm.extramoney.MainActivity.onActivityResult(MainActivity.java:83)
        at android.app.Activity.dispatchActivityResult(Activity.java:8310)
        at android.app.ActivityThread.deliverResults(ActivityThread.java:5008)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:5056) 
        at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:223) 
        at android.app.ActivityThread.main(ActivityThread.java:7656) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-09-02
@timonestudio

What's wrong with FireBase authentication?

Authentication? Auntie?
Must specify an idToken or an accessToken.

613109ab29d6c915011514.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question