Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在环境中设置ANDROID_主页,ViewClient_Android_Monkeyrunner_Androidviewclient - Fatal编程技术网

在环境中设置ANDROID_主页,ViewClient

在环境中设置ANDROID_主页,ViewClient,android,monkeyrunner,androidviewclient,Android,Monkeyrunner,Androidviewclient,我使用viewclient在测试中按下按钮。但是我得到的安卓_主页路径没有设置,尽管我在环境变量中设置了它。我正在使用windows7操作系统 File "F:\Example\AndroidViewClient\src\com\dtmilano\android\viewclient.py", line 870, in _init_() File "F:\Example\AndroidViewClient\src\com\dtmilano\android\viewclient.py", line

我使用viewclient在测试中按下按钮。但是我得到的安卓_主页路径没有设置,尽管我在环境变量中设置了它。我正在使用windows7操作系统

File "F:\Example\AndroidViewClient\src\com\dtmilano\android\viewclient.py", line 870, in _init_()
File "F:\Example\AndroidViewClient\src\com\dtmilano\android\viewclient.py", line 986 in _ViewClient_obtainAdbPath
它引发了以下例外

('adb="%s" is not executable. Did you forget to set ANDROID_HOME in the environment?' %adb)
Exception: adb="%s" is not executable. Did you forget to set ANDROID_HOME in the environment?
我的环境变量

ANDROID_HOME=C:\adt-bundle-windows-x86_64\adt-bundle-windows\sdk\platform-tools
ANDROID_VIEW_CLIENT_HOME=C:\Users\testing\Downloads\AndroidViewClient-version_2_3_1\AndroidViewClient-version_2_3_1\AndroidViewClient
它到处都是,把它弄得一团糟。因此,我想请专家,并在这里发布这篇文章。提前感谢

升级到最新版本(2.3.4)应该可以解决Windows的一些问题

set ANDROID_HOME=c:\Users\Administrator\AppData\Local\Android\android-sdk
帮助我解决了这个问题

RuntimeError: The '<ANDROID_HOME>/tools' directory is missing.
Please set the ANDROID_HOME environment variable to a proper Android SDK installation.

尝试将设置为ANDROID_HOME的内容添加到PATH变量中。我过去也遇到过类似的问题,我相信这就是解决办法。我也做过同样的事情。。但它仍然显示出同样的错误。真烦人:(
RuntimeError: Unable to locate the "adb" command.  
Either set the ANDROID_HOME environment variable or add the location of the "adb" command to your path.