• java.io.IOException: FIS_AUTH_ERROR in Android Firebase


    项目里更换完google-services.json文件后,获取 firebase token 时,显示报错:
     

    1. E/FirebaseInstanceId: Topic sync or token retrieval failed on hard failure exceptions: FIS_AUTH_ERROR. Won't retry the operation.
    2. D/AndroidRuntime: Shutting down VM
    3. com.google.android.gms.tasks.RuntimeExecutionException: java.io.IOException: FIS_AUTH_ERROR
    4. at com.google.android.gms.tasks.zzu.getResult(Unknown Source:15)
    5. at com.myApp.MainActivity$2.onComplete(MainActivity.java:349)
    6. at com.google.android.gms.tasks.zzj.run(Unknown Source:4)
    7. at android.os.Handler.handleCallback(Handler.java:883)
    8. at android.os.Handler.dispatchMessage(Handler.java:100)
    9. at android.os.Looper.loop(Looper.java:237)
    10. at android.app.ActivityThread.main(ActivityThread.java:7804)
    11. at java.lang.reflect.Method.invoke(Native Method)
    12. at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    13. at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1068)
    14. Caused by: java.io.IOException: FIS_AUTH_ERROR
    15. at com.google.firebase.iid.zzs.zza(com.google.firebase:firebase-iid@@20.1.0:82)
    16. at com.google.firebase.iid.zzs.zza(com.google.firebase:firebase-iid@@20.1.0:96)
    17. at com.google.firebase.iid.zzx.then(com.google.firebase:firebase-iid@@20.1.0:4)
    18. at com.google.android.gms.tasks.zzd.run(Unknown Source:5)
    19. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    20. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    21. at java.lang.Thread.run(Thread.java:919)

     对我有用的办法:
    删除build.gradle文件,clear 和 rebuild

     

  • 相关阅读:
    互联网社交礼仪:我到底该怎么笑才对
    微信小程序Jenkins持续集成打包发布流程
    数据分析缺失值处理(Missing Values)——删除法、填充法、插值法
    元素绑定
    Linux 学习笔记(9)
    Java - 发送 HTTP 请求的及其简单的方法模块 - hutool
    AngularJS 退役,Angular 接棒
    Halcon转OpenCV实例--保险丝颜色识别(附源码)
    ubuntu20.04升级到22.04
    React-4 组件知识
  • 原文地址:https://blog.csdn.net/NewActivity/article/details/127890580