问题描述
我正在尝试设置一个 win10 Appium 环境来做一些 Android 自动化测试.
I was trying to set a win10 Appium environment to do some Android automation test.
我的 adb 环境变量和 Android 设备都设置好了(见附件截图).
My adb environment var and Android devices are all set down (seen in attach screenshots).
但是,当我运行python或java测试代码时,appium服务器总是告诉我找不到我的adb.exe和build tools文件夹.我花了 aloooooooooot 时间在 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-toolsPATH
:%ANDROID_HOME%\tools
ANDROID_HOME
: SDK root path onlyPATH
: %ANDROID_HOME%\platform-toolsPATH
: %ANDROID_HOME%\tools
这篇关于如何解决 Appium-desktop 找不到我的 adb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!