使用模拟器时 Android Studio 2.3.3 Logcat "Unable to connect to the editor...";该怎么办?

标签 android android-studio logcat

在 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/

相关文章:

android - 我需要在主要 Activity 中使用 "singleInstance",我还需要将另一个 Activity 带到顶部

Android Studio(0.2.0) 单元测试 logcat 无输出

android - 在命令行过滤 Logcat 日志

android - 是否可以在没有应用程序源代码的情况下查看 log cat 的输出?

android - 如何将图标放在 Android 中圆形图像的顶部?

android - 在 xamarin 中查找版本并强制更新

android - 通过 ContentValues 处理 Blob 数据类型

android studio 中的 Git 提交错误

Android Studio 北极狐 | 2020.3.1 Canary 14 找不到参数的方法 dependencyResolutionManagement()

android studio1.0.2 本地路径不存在