SWT folder '..\framework\x86_64' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
/tools/bin/monkeyrunner.bat 执行报错无法使用:
原因为bat脚本有两处错误
一 old:
if exist %frameworkdir%%jarfile% goto JarFileOk
set frameworkdir=lib
modify:
if exist %frameworkdir%%jarfile% goto JarFileOk
set frameworkdir=..\lib
二 old:
call "%java_exe%" -Xmx512m "-Djava.ext.dirs=%frameworkdir%;%swt_path%" -Dcom.android.monkeyrunner.bindir=..\framework -jar %jarpath% %*
modify:
call "%java_exe%" -Xmx512m "-Djava.ext.dirs=%frameworkdir%;%swt_path%" -Dcom.android.monkeyrunner.bindir=....\platform-tools -jar %jarpath% %*
网友评论