我正在尝试安装 AndroidViewClient 但有很多问题。我在 dtmilano 的 github 上下载了它。我在小牛队,我是 python 新手。我知道如何使用 Monkeyrunner,但自从我下载了 AndroidViewClient,我完全迷失了!
Si按照github上的分步说明进行操作!当我尝试启动 ./dump 时,我收到了这条消息:
Traceback (most recent call last):
File "./tools/dump", line 126, in <module>
vc = ViewClient(*ViewClient.connectToDeviceOrExit(**kwargs1), **kwargs2)
File "/Library/Python/2.7/site-packages/androidviewclient-5.6.0- py2.7.egg/com/dtmilano/android/viewclient.py", line 1188, in __init__
adb = ViewClient.__obtainAdbPath()
File "/Library/Python/2.7/site-packages/androidviewclient-5.6.0-py2.7.egg/com/dtmilano/android/viewclient.py", line 1341, in __obtainAdbPath
raise Exception('adb="%s" is not executable. Did you forget to set ANDROID_HOME in the environment?' % adb)
Exception: adb="adb" is not executable. Did you forget to set ANDROID_HOME in the environment?
这是我的环境变量:
ANDROID_HOME=/Users/Flo/Documents/adt-bundle-mac-x86_64-20130729/sdk/
ANDROID_VIEW_CLIENT_HOME=/Users/Flo/Documents/Android/AndroidViewClient-5.1.1/AndroidViewClient/
如果我cd $ANDROID_VIEW_CLIENT_HOME
不能执行脚本,我会得到我的 AndroidViewClient 文件夹。
当我这样做时:python check-import.py --debug
,我得到了这个:
sys.path= ['/Users/Flo/Documents/Android/AndroidViewClient-5.1.1/AndroidViewClient/examples', '/Library/Python/2.7/site-packages/androidviewclient-5.6.0-py2.7.egg', '/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages', '/Users/Flo/Documents/Android/AndroidViewClient-5.1.1/AndroidViewClient/src']
OK
任何人都可以帮助我吗?我已经两天了,我不知道我能做什么。我尝试了很多东西。删除 AndroidViewClient / 重新安装它,但它总是相同的结果