【问题标题】:V/FA: Inactivity, disconnecting from the service [duplicate]V / FA:不活动,与服务断开连接[重复]
【发布时间】:2018-02-15 06:26:18
【问题描述】:

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

 Inactivity, disconnecting from the service

【问题讨论】:

  • 日志消息中的“FA”代表 Firebase Analytics。这些是信息性消息,并不表示错误。如果您在应用中遇到问题,则它们是由其他原因引起的。
  • 连接到 firebase 的每个项目在 logcat 中显示相同的消息
  • @BobSnyder 现在如何解决这个问题?
  • 没有什么可修复的。没有问题。当 Firebase Analytics 没有要报告的事件时,它会断开与报告服务的连接。它稍后会在有要报告的事件时重新连接。忽略该消息。
  • @bobsynder 先生,实际上我目前正在开发两个应用程序,在这两个项目中,我都将数据从 firebase 数据库检索到 recyclerview,但应用程序显示空白屏幕并崩溃,并且在 logcat 中我收到消息不活动断开连接来自服务。

标签: android firebase firebase-authentication logcat


【解决方案1】:

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 studio,那个错误就消失了。 因为所有的后端线程和进程都关闭了。

快乐编码。

【讨论】:

  • 这没有帮助!
  • 它对我也不起作用。
  • 它对我也不起作用...我也丢失了本地历史
  • 这意味着您的问题是由另一个原因产生的,而不是由于后台线程,因此请仔细检查您应用中的所有侦听器。如果您使用一个侦听器依赖于另一个侦听器,那么请尝试使其独立
  • 根本不工作。
猜你喜欢
  • 1970-01-01
  • 2017-02-04
  • 1970-01-01
  • 2017-12-24
  • 1970-01-01
  • 1970-01-01
  • 2016-12-10
  • 2021-03-13
  • 2010-12-07
相关资源
最近更新 更多