[英]Appium could not find 'adb.exe'
Im trying to run some code that using appium but encountered this error 我试图运行一些使用appium的代码,但遇到此错误
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error:
Could not find 'adb.exe' in
["D:\\MobileTestTools\\sdkGood;\\platform-tools\\adb.exe ..."
Why does this happen with improperly filled environment variables? 为什么在环境变量填充不正确的情况下会发生这种情况?
[C:\Users\XXX>adb --version
Android Debug Bridge version 1.0.41
Version 29.0.2-5738569
Installed as D:\MobileTestTools\sdkGood\platform-tools\adb.exe]
Also i have ANDROID_HOME variable with "D:\\MobileTestTools\\sdkGood" value 我也有ANDROID_HOME变量,其值为“ D:\\ MobileTestTools \\ sdkGood”
I found the cause of the error. 我找到了错误的原因。 Perhaps this error appears only on Windows 10. Appium uses the ANDROID_HOME variable to search for files.
也许此错误仅出现在Windows 10上。Appium使用ANDROID_HOME变量搜索文件。 And despite the fact that it was set without a semicolon, Windows added a semicolon to it and Appium will use it by default
而且尽管它设置时没有分号,但Windows向其添加了分号,并且Appium将默认使用它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.