Android Studio 在 Ubuntu 上的键盘问题
Keyboard issues with Android Studio on Ubuntu
在 Ubuntu 上使用 Android Studio 时,在某些情况下 IDE 会停止响应键盘输入或开始输入随机字符?
如何解决这个问题?或者可能的解决方法。
The bug seems to be triggered by some missing synchronization between
IBus (the server) and Xlib + AWT (the client JVM), exposed by a
combination of a quick succession of key presses and the client’s
slower event handling.
对我有帮助的 2 个解决方法是:
Workaround #1: Force ibus in synchronous mode
$ IBUS_ENABLE_SYNC_MODE=1 ibus-daemon -xrd
Do this preferably before starting Studio. This workaround was
suggested in https://code.google.com/p/ibus/issues/detail?id=1733 for
a different Java application facing the same problems.
Workaround #2: Disable IBus input in Studio
$ XMODIFIERS= ./bin/studio.sh
This will only disable input methods for Studio, not the other
applications. Restarting the daemon while Studio is running
(‘ibus-daemon -rd’) effectively disables the input methods for all
other applications, and can also crash Studio's JVM with a
segmentation fault.
File -> Invalidate Catches / Restart
适合我。
只需重新启动 Android Studio。
每次重新启动时,键盘都会开始正常工作。
这是一个已知问题 [冻结键盘输入 - "iBus" Linux][1]
上的问题
在 ubuntu 2020 爱迪生重新启动 IDE 工作。
这是 Ubuntu 20.04 上唯一对我有用的东西。
- 关闭 Android 工作室(如果打开)
- 删除
Home/.android
目录
- 打开Android工作室
- 转到
File > Invalidate Caches/Restart
- 单击无效并重新启动按钮
I also deleted the project level .idea
folder, can't say for sure if that did anything. You may try it.
在 Ubuntu 上使用 Android Studio 时,在某些情况下 IDE 会停止响应键盘输入或开始输入随机字符?
如何解决这个问题?或者可能的解决方法。
The bug seems to be triggered by some missing synchronization between IBus (the server) and Xlib + AWT (the client JVM), exposed by a combination of a quick succession of key presses and the client’s slower event handling.
对我有帮助的 2 个解决方法是:
Workaround #1: Force ibus in synchronous mode
$ IBUS_ENABLE_SYNC_MODE=1 ibus-daemon -xrd
Do this preferably before starting Studio. This workaround was suggested in https://code.google.com/p/ibus/issues/detail?id=1733 for a different Java application facing the same problems.
Workaround #2: Disable IBus input in Studio
$ XMODIFIERS= ./bin/studio.sh
This will only disable input methods for Studio, not the other applications. Restarting the daemon while Studio is running (‘ibus-daemon -rd’) effectively disables the input methods for all other applications, and can also crash Studio's JVM with a segmentation fault.
File -> Invalidate Catches / Restart
适合我。
只需重新启动 Android Studio。 每次重新启动时,键盘都会开始正常工作。
这是一个已知问题 [冻结键盘输入 - "iBus" Linux][1]
上的问题在 ubuntu 2020 爱迪生重新启动 IDE 工作。
这是 Ubuntu 20.04 上唯一对我有用的东西。
- 关闭 Android 工作室(如果打开)
- 删除
Home/.android
目录 - 打开Android工作室
- 转到
File > Invalidate Caches/Restart
- 单击无效并重新启动按钮
I also deleted the project level
.idea
folder, can't say for sure if that did anything. You may try it.