简体   繁体   English

Appium找不到“ adb.exe”

[英]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.

相关问题 无法创建新的 session。 (原始错误:命令失败:...\adb.exe -s 192.168.150.105:5555 shell “ps 'uiautomator'”” ps: uiautomator) - A new session could not be created. (Original error: Command failed: …\adb.exe -s 192.168.150.105:5555 shell “ps 'uiautomator'”" ps: uiautomator ) 未找到DDMS文件Android \\ platform-tools \\ adb.exe - DDMS Files Not Found Android\platform-tools\adb.exe Adb.exe文件从平台工具中自动删除 - Adb.exe file auto deleted from platform-tools Adb.exe(Android调试桥)无法安装.apk - Adb.exe (Android Debug Bridge) Can't Install .apk 如何使用adb.exe shell命令执行android应用程序时发送参数 - howto send a parameter when executing a android app with adb.exe shell command java.io.IOException:无法运行程序adb.exe CreateProcess error = 5,拒绝访问 - java.io.IOException: Cannot run program adb.exe CreateProcess error=5, Access is denied 由于android studio和adb.exe的更新,我无法运行我的程序 - I am not able to run my program due to update of android studio and adb.exe 从Java程序以编程方式安装Android应用(Runtime.getRunTime()。exec(adb.exe安装app_package_name) - Programmatically install Android app from java program (Runtime.getRunTime().exec(adb.exe install app_package_name) Appium如何获得adb logcat - Appium how to get adb logcat AWS设备场上的Appium / TestNG脚本-找不到元素 - Appium/TestNG script on AWS device farm - could not find element
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM