Logcat 在 Eclipse Mars 中显示不可见的消息

2022-01-24 00:00:00 linux debian eclipse logcat

我的电脑在 Debian Jessie &Logcat 的消息在 eclipse Mars 上都是不可见的.我尝试了一个解决方案这里,但没有帮助.现在该怎么办?

My PC running on Debian Jessie & Logcat's messages are all invisible on eclipse Mars. I tried a solution here, but no help. What to do now?

--------- 更新 ----------

我尝试了以下方法:

  1. 在 com.android.ide.eclipse.ddms.prefs 文件中更改 logcat/ddms 的元数据设置.
  2. 不要通过导出 SWT_GTK3=0 来使用 GTK3

但两者都未能解决问题.

But both failed to fix the situation.

推荐答案

我遇到了类似的问题(Arch Linux 上的 Eclipse Mars),结果证明是 GTK 问题.解决方案是添加以下两行

I had a similar problem (Eclipse Mars on Arch Linux) and it turned out to be a GTK issue. The solution was to add the following two lines

--launcher.GTK_version
2

在 eclipse.ini 之前

in eclipse.ini right before the

--launcher.appendVmargs

行,如 https://bbs.archlinux.org/viewtopic.php?id=200053请注意,eclipse.ini 的位置是特定于发行版的(在我的情况下,它位于/usr/lib/eclipse 下)并且不同目录中的文件的多个副本可以覆盖相同的设置,因此请确保在正确的地方.

line, as explained in https://bbs.archlinux.org/viewtopic.php?id=200053 Note that the location of eclipse.ini is distro specific (in my case it was under /usr/lib/eclipse) and multiple copies of the file in different directories can override the same setting, so make sure you are adding the lines in the right place.

相关文章