![当我从终端运行 Android SDK 时,显示错误。如何修复?](https://linux22.com/image/821090/%E5%BD%93%E6%88%91%E4%BB%8E%E7%BB%88%E7%AB%AF%E8%BF%90%E8%A1%8C%20Android%20SDK%20%E6%97%B6%EF%BC%8C%E6%98%BE%E7%A4%BA%E9%94%99%E8%AF%AF%E3%80%82%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%EF%BC%9F.png)
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3550 or swt-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at com.android.sdkmanager.Main.showSdkManagerWindow(Main.java:328)
at com.android.sdkmanager.Main.doAction(Main.java:316)
at com.android.sdkmanager.Main.run(Main.java:118)
at com.android.sdkmanager.Main.main(Main.java:101)
答案1
归功于Ubuntu 论坛:
sudo mount -o remount,exec /tmp
答案2
aptitude search swt-gtk 根据搜索结果,我推测安装 libswt-gtk-3-java 可以解决您的问题。
如果不行,请尝试 -jni 或 -gcj 版本。我相信其中一个应该可以修复你的堆栈跟踪。