• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps SDK: 'android' app doesn't start, can't find swt-gtk

fdelente

Lurker
Hello.

I have both Eclipse 4.4 and the SDK installed (latest version of the SDK, with 'android --no-ui update sdk', on a Linux Gentoo x86_64 machine.

Lately the Eclipse Android SDK manager stopped working; starting it from a console, I got this error:

$ android
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:351)
at com.android.sdkmanager.Main.doAction(Main.java:339)
at com.android.sdkmanager.Main.run(Main.java:125)
at com.android.sdkmanager.Main.main(Main.java:108)

I searched for swt-gtk on my machine, and found this in my home:

~$ ls .swt/lib/linux/x86_64
libswt-atk-gtk-4234.so* libswt-cairo-gtk-4234.so* libswt-gtk-4234.so* libswt-pi-gtk-4234.so*

I added symlink to these files in that directory (symlink libswt-gtk.so to libswt-gtk-4234.so and the same for the other libs), but it didn't solve my problem.

How can I get these libraries? Where do I put them, or how do I change the path where the libraries are searched? Thanks for any tip.
 
Back
Top Bottom