我是 appium 的新手并试图让它发挥作用。问题是当我运行 appium 时 它会显示以下错误:
原始错误:ENOENT:没有这样的文件或目录,scandir'C:\ Users \ SuperComputer \ android-sdks \ tools; C:\ Users \ SuperComputer \ android-sdks \ platform-tools; \ build-tools
我还在这里附上一个日志:
[info] [Appium] Welcome to Appium v1.7.2[info] [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"Chrome","deviceName":"android","platformName":"Android"},"capabilities":{"desiredCapabilities":{"browserName":"Chrome","deviceName":"android","platformName":"Android"},"firstMatch":[{"browserName":"Chrome","platformName":"android"}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"browserName":"Chrome","deviceName":"android","platformName":"Android"},null,{"desiredCapabilities":{"browserName":"Chrome","deviceName":"android","platformName":"Android"},"firstMatch":[{"browserName":"Chrome","platformName":"android"}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1517563423205 (14:53:43 GMT+0530 (India Standard Time))
[info] [Appium] Merged W3C capabilities {"desiredCapabilities":{"browserName":"Chrome",... into desiredCapabilities object {"browserName":"Chrome","deviceName":"android",...
[info] [Appium] Creating new AndroidDriver (v1.37.0) session
[info] [Appium] Capabilities:
[info] [Appium] browserName: Chrome
[info] [Appium] deviceName: android
[info] [Appium] platformName: android
[info] [BaseDriver] Session created with session id: fc535adf-8a02-41c9-9b48-8b1efd243312
[debug] [AndroidDriver] Getting Java version[info] [AndroidDriver] Java version is: 1.8.0_162
[info] [AndroidDriver] We're going to run a Chrome-based session
[info] [AndroidDriver] Chrome-type package and activity are com.android.chrome and com.google.android.apps.chrome.Main
[info] [ADB] Checking whether adb is present
[debug] [AndroidDriver] Shutting down Android driver
[debug] [AndroidDriver] Called deleteSession but bootstrap wasn't active
**[error] [MJSONWP] Encountered internal error running command: Error: ENOENT: no such file or directory, scandir 'C:\Users\SuperComputer\android-sdks\tools;C:\Users\SuperComputer\android-sdks\platform-tools;\build-tools'**
[info] [HTTP] <-- POST /wd/hub/session 500 1148 ms - 296
有人可以帮忙吗?
答案 0 :(得分:0)
观察错误消息中的SDK路径并确保其正确无误。 您可能必须根据所看到的内容修复ANDROID_HOME
答案 1 :(得分:0)
我重新检查了路径并对其进行了相应的修正,现在变换就像魔术一样