V/FA:不活动,断开与服务的连接

Wah*_*iri 21 android logcat firebase firebase-authentication

我在两个android项目中遇到这个问题.在一个我试图从Firebase检索数据到Recyclerview和另一个我试图使用电话号码登录但在两种情况下logcat显示V/FA:

 Inactivity, disconnecting from the service
Run Code Online (Sandbox Code Playgroud)

Soh*_*lam 5

Inactivity, disconnecting from the service

您需要按照几个步骤来解决此问题. Reason: You face this problem because in the background there are few-thread and the process is running in the android studio which uses the connection of firebase and your process not get the connection.

脚步:

  1. 从您的手机/模拟器中卸载应用程序.
  2. 然后转到android studio中主菜单栏中的File选项.
  3. 然后单击Invalidatecasha/restart.

它需要几分钟并重新启动你的android工作室,并且该错误消失了.因为所有后端线程和进程都是关闭的.

快乐的编码.

  • 根本不工作。 (7认同)
  • 这没有用! (3认同)
  • 它对我也不起作用......我也失去了我的本地历史 (3认同)
  • 它也不适合我. (2认同)
  • 这意味着您的问题是由另一个原因产生的,而不是由于后台线程,因此请仔细检查应用程序中的所有侦听器。如果您使用一个侦听器依赖于另一个侦听器,那么只需尝试使其独立 (2认同)