V/FA:不活动,与服务断开连接 [英] V/FA: Inactivity, disconnecting from the service

查看:41
本文介绍了V/FA:不活动,与服务断开连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I face this problem in two android projects . In one i was trying to retrieve data from Firebase into Recyclerview and in onother i was trying to login using phone number but in both cases logcat is showing V/FA:

 Inactivity, disconnecting from the service

推荐答案

不活动,与服务断开连接

您需要执行几个步骤来消除此问题.原因:您遇到这个问题是因为在后台线程很少,并且该进程在使用firebase连接的android studio中运行并且您的进程未获得连接.

You Need to follow few steps to remove this problem. 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,该错误消失了.因为所有的后端线程和进程都关闭了.

It takes few mints and restarts you android studio and that error is gone. Because all the backend thread and process are closed.

快乐编码.

这篇关于V/FA:不活动,与服务断开连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆