从终端启动uiautomatorviewer时遇到错误

时间:2019-05-06 05:55:43

标签: android automation ui-automation qa

我想开始通过uiautomatorviewer从android应用程序中查找元素,但是当我通过终端启动uiautomatorviewer时出现以下错误。

线程“ main”中的异常java.lang.UnsatisfiedLinkError:无法加载SWT库。原因:     java.library.path中没有swt-win32-3659     java.library.path中没有swt-win32     无法加载库:/tmp/swtlib-64/libswt-win32-3659.so     无法加载库:/tmp/swtlib-64/libswt-win32.so

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.widgets.Widget.<clinit>(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)

0 个答案:

没有答案