我的环境是Ubuntu13.04,Optimus Q2 with ics。
当我运行下面的代码时,它输出0而不是1
#! /usr/bin/env monkeyrunner
# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
print "0"
# Connects to the current device, returning a MonkeyDevice object
device = MonkeyRunner.waitForConnection()
print "1"我是否必须将我的Ubuntu更改为Windows,安装智能手机驱动程序,然后重试?
发布于 2016-02-09 21:14:54
这可能是因为您试图在另一个脚本中运行多个脚本。我猜是同步问题吧。
https://stackoverflow.com/questions/16791101
复制相似问题