运行monkey runner提示:SWT folder '..\framework\x86_64' does not exist.
在cmd中运行monkeyrunner 报错:
SWT folder '..\framework\x86_64' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
在网上找了很多方法,如:
1.Java环境中有空格;
2.删除monkeyrunner.bat文件中:
delete the blank between "arch_ext=32" and "||", like "arch_ext=32||", reopen the cmd, and all tools will work fine.
都不行。
后来看到了一篇博客中的方法,既阐述了原理又解决了问题,方法如下:
1.在monkeyrunner的上级目录新建一个framwork文件夹(即tools目录下),建完之后如下图所示:
2.将lib文件夹中的内容全部复制到framework文件夹下面;
3.再次运行monkeyrunner,可能会有以下报错,提示找不到adb.exe:
4.出现上述报错的话,将platform-tools下面的adb.exe复制一份到framework文件夹下面,再次运行monkeyrunner会进入到Shell交互模式
成功解决问题
详细解决方法和过程请参考:
http://blog.csdn.net/caihongdao123/article/details/73801642