I want to run Android studio Uiautomatorviewer on Manjaro Linux but it says there is no SWT found.
I want to install SWT using:
yay -S swt
but it says there is no Cairo found.
I installed the cairo using:
yay -S cairo
but when I want to install the SWT, again it says there is no cairo.
I want to install Cairo from the source but then it says there is no lzo2 and libpng found.
I installed the two libs but again Cairo can’t build because of these two libs.
how can I fix this problem?
Thank you for your help!
[nls@lap ~]$ sudo pacman -S cairo
[sudo] password for nls:
warning: cairo-1.18.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) cairo-1.18.0-1
Total Installed Size: 1,59 MiB
Net Upgrade Size: 0,00 MiB
:: Proceed with installation? [Y/n] n
[nls@lap ~]$
I found swt, the open source widget toolkit for java, found in the AUR with pamac
Hey, I had the following problem with UIAutomatorViewer:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3550 or swt-pi-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.gtk.OS.<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 org.eclipse.swt.widgets.Widget.isValidSubclass(Unknown Source)
at org.eclipse.swt.widgets.Decorations.checkSubclass(Unknown Source)
at org.eclipse.swt.widgets.Shell.<init>(Unknown Source)
at org.eclipse.swt.widgets.Shell.<init>(Unknown Source)
at org.eclipse.jface.window.Window.createShell(Window.java:487)
at org.eclipse.jface.window.Window.create(Window.java:430)
at org.eclipse.jface.window.Window.open(Window.java:790)
at com.android.uiautomator.UiAutomatorViewer.main(UiAutomatorViewer.java:78)
And solve it you simply need to install these packages (they are not in AUR):