当前位置:   article > 正文

java.io.IOException: FIS_AUTH_ERROR in Android Firebase_topic sync or token retrieval failed on hard failu

topic sync or token retrieval failed on hard failure exceptions: java.util.c

项目里更换完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

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/145350?site
推荐阅读
相关标签
  

闽ICP备14008679号