在 Android Studio 2.3.3 中,我经常收到几十条这样的 Logcat 消息。可能每 5 次运行一次:
com.android.inputmethod.latin E/RichInputConnection: Unable to connect to the editor to retrieve text... will retry later
com.android.inputmethod.latin E/RichInputConnection: Unable to connect to the editor to retrieve text... will retry later
com.android.inputmethod.latin E/RichInputConnection: Unable to connect to the editor to retrieve text... will retry later
com.android.inputmethod.latin E/RichInputConnection: Unable to connect to the editor to retrieve text... will retry later
com.android.inputmethod.latin E/RichInputConnection: Unable to connect to the editor to retrieve text... will retry later
com.android.inputmethod.latin E/RichInputConnection: Unable to connect to the editor to retrieve text... will retry later
Log.
语句没有输出。
调试会因此受到很大阻碍。
我正在使用模拟器 10.1 WXGA Tablet_API_19,Android 4.4.2。但它也发生在其他模拟器上。当我将我的 Android 设备连接到 USB 并向其编译应用程序时,这似乎(对此并不乐观)从未发生过。
我反复重启 Logcat,反复清除它,甚至退出了 Studio;总是返回相同的消息。
这不是我在做什么,是吗?一个关于这个的 SO Answer 是,“你提到的错误并不特别属于 ListView 。这是 logcat 错误。重新启动你的 Logcat 希望它对你有用。”它没有。
所以 Logcat 中是否存在错误,正如另一条 SO 评论所暗示的那样?
有没有人知道解决方法?我是否应该将此问题报告为错误,因为它肯定是不对的!
最佳答案
根据注释文件代码:
For some reason the app thinks we are not connected to it. This looks like a framework bug... Fall back to ground state and return false. Link to code
您使用什么操作系统?
错误可能是由系统中的某些进程或错误的配置引起的。尝试重新下载 Android 平台工具。
关于使用模拟器时 Android Studio 2.3.3 Logcat "Unable to connect to the editor...";该怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46027969/