Appium问题解决方案- Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME environment v

Posted 阿菠萝阿瑶

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Appium问题解决方案- Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME environment v相关的知识,希望对你有一定的参考价值。

背景:运行代码提示找不到ADB

An unknown server-side error occurred while processing the command. Original error: Could not find \'adb.exe\' in PATH. Please set the android_HOME environment variable with the Android SDK root directory path.

 

解决方法

步骤一

检查下ANDROID_HOME环境变量是否正确配置,配置好之后重启下appium和pycharm 命令行等相关工具

 

步骤二

可以通过appium-desktop查看环境变量是否正确配置,若正确配置可以在程序中正确回显你配置的环境变量。

 

如果你这里出现的是空白页面,那么建议你重新配置,或者直接把对应的路径填上去,然后save and restart

以上是关于Appium问题解决方案- Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME environment v的主要内容,如果未能解决你的问题,请参考以下文章

Appium运行时没有启动activity的权限:A new session could not be created.(Original error: Permission to start act

Appium问题解决方案- Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME environment v

appium+Xcode+ios:ideviceinstaller -l命令报错“Could not connect to lockdownd. Exiting.”

已解决mac上appium报错:“Could not find aapt Please set the ANDROID_HOME environment variable with the And(代

记录Appium-desktop踩过的坑could not find devices

搭建python+appium环境的时候遇到 'could not find adb.exe!'的问题