我该如何解决Appium桌面找不到我的ADB [英] How do I solve Appium-desktop could not find my adb

查看:251
本文介绍了我该如何解决Appium桌面找不到我的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.

adb设备

找不到adb.exe

找不到构建工具

SDK根

adb.exe根

推荐答案

在所附的屏幕截图中,您似乎已更新了在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_HOMEPath正确设置环境变量,

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 only
  • PATH: %ANDROID_HOME%\platform-tools
  • PATH: %ANDROID_HOME%\tools

这篇关于我该如何解决Appium桌面找不到我的ADB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆