我该如何解决Appium桌面找不到我的ADB [英] How do I solve Appium-desktop could not find my adb
问题描述
我试图设置一个win10 Appium环境来进行一些Android自动化测试.
I was trying to set a win10 Appium environment to do some Android automation test.
我的adb环境var和Android设备都已设置好(请参见附件屏幕截图).
My adb environment var and Android devices are all set down (seen in attach screenshots).
但是,当我运行python或java测试代码时,appium服务器总是告诉我找不到我的adb.exe和构建工具文件夹.我花了很多时间在Google上找到解决方案,但没有任何效果.
However when I run the python or java test code, the appium server always tells me that my adb.exe and build tools folder could not be found. I spent aloooooooooot of time on finding the solution on google but nothing works.
推荐答案
在所附的屏幕截图中,您似乎已更新了在ANDROID_HOME
环境变量下全部由半冒号分隔的多个路径.
From the screenshot you attached it seems like you have updated multiple paths separated by semi colon all under ANDROID_HOME
environment variable.
如下所述为ANDROID_HOME
和Path
正确设置环境变量,
Set the environment variables properly for ANDROID_HOME
and Path
as described below,
-
ANDROID_HOME
:仅SDK根路径 -
PATH
:%ANDROID_HOME%\ platform-tools -
PATH
:%ANDROID_HOME%\ tools
ANDROID_HOME
: SDK root path onlyPATH
: %ANDROID_HOME%\platform-toolsPATH
: %ANDROID_HOME%\tools
这篇关于我该如何解决Appium桌面找不到我的ADB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!