首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >android monkeyrunner waitForConnection永远挂起

android monkeyrunner waitForConnection永远挂起
EN

Stack Overflow用户
提问于 2013-05-28 19:37:39
回答 1查看 509关注 0票数 0

我的环境是Ubuntu13.04,Optimus Q2 with ics。

当我运行下面的代码时,它输出0而不是1

代码语言:javascript
复制
#! /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,安装智能手机驱动程序,然后重试?

EN

回答 1

Stack Overflow用户

发布于 2016-02-09 21:14:54

这可能是因为您试图在另一个脚本中运行多个脚本。我猜是同步问题吧。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16791101

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档