C:\Users\Apptest>monkeyrunner
SWT folder '..\framework\x86' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
用记事本打开monkeyrunner.bat文件
修改以下位置
for /f %%a in ("%APP_HOME%\lib\monkeyrunner-25.3.2.jar") do set jarfile=%%~nxa
set frameworkdir=.
set libdir=
rem-----------------------------------------------------------------------
rem 注释下面的4行
rem if exist %frameworkdir%\%jarfile% goto JarFileOk
rem set frameworkdir=lib
rem if exist %frameworkdir%\%jarfile% goto JarFileOk
rem set frameworkdir=..\framework
rem 手动修改文件
set frameworkdir=..\lib
rem---------------------------------------------------------------------------
:JarFileOk