[求助]monkeyrunner脚本运行提示no model named 'com'
脚本代码如下:from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice,MonkeyImage
device=MonkeyRunner.waitForConnection()
device.installPackage("E:/Bazi/Aiqingyuce/packagename.apk")
#查看应用包名和启动Activity:进入sdk的build-tools目录
#使用aapt dump badging apkdir/apkname
device.startActivity(component='com.lbtjni.yuce/com.lbtjni.lbtjni')
device.press("KEYCODE_MENU","DOWN_AND_UP")
result=device.takesnapshot()
result.writeToFile(r'E:/Bazi/Aiqingyuce/shot1.png','.png') 楼主是怎么运行的? cmd窗口运行可以的吧
页:
[1]