当我运行猴子跑步者时,我收到 swt 错误
我创建了以下脚本并将其保存为 lib 文件夹中的 (test.mr) 并从命令提示符运行 C:\Android_Stuff\android-sdk-windows\tools\lib\monkeyrunner test.mr
@Importing monkeyrunner
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
@waiting for the device connection
device = MonkeyRunner.waitForConnection()
@Installing my app.
device.installPackage('C:/Android_Stuff/android-sdk-windows/tools/lib/purchase.apk')
@starting my demo page
device.startActivity(component='com.mobilemoneynetwork.purchase/.demo')
@selecting the Menu Button.
device.press('KEYCODE_MENU','DOWN_AND_UP')
我得到
Unable to access jarfile ..\framework\archquery.jar
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
I have created the below script and saved it as (test.mr) in the lib folder and running from the command prompt C:\Android_Stuff\android-sdk-windows\tools\lib\monkeyrunner test.mr
@Importing monkeyrunner
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
@waiting for the device connection
device = MonkeyRunner.waitForConnection()
@Installing my app.
device.installPackage('C:/Android_Stuff/android-sdk-windows/tools/lib/purchase.apk')
@starting my demo page
device.startActivity(component='com.mobilemoneynetwork.purchase/.demo')
@selecting the Menu Button.
device.press('KEYCODE_MENU','DOWN_AND_UP')
I am getting
Unable to access jarfile ..\framework\archquery.jar
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在环境变量中设置 ANDROID_SWT 路径,它应该是“您的路径”\Android\Sdk\tools\lib\x86_64
Set ANDROID_SWT path in environment variable it should be "your path"\Android\Sdk\tools\lib\x86_64