Appium报错:
> error: Failed to start an Appium session, err was: Error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
> info: [debug] Error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
> at [object Object].<anonymous> (D:\Program Files\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:126:12)
> at ChildProcess.exithandler (child_process.js:758:5)
> at ChildProcess.emit (events.js:110:17)
> at maybeClose (child_process.js:1016:16)
> at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
> info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.)","origValue":"Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path."},"sessionId":null}
> info: <-- POST /wd/hub/session 500 71220.599 ms - 342 作者: 梦想家 时间: 2017-5-2 17:55
顶一下作者: 1039196210 时间: 2017-5-2 18:43
木有配置环境变量:Please set the ANDROID_HOME environment variable with the Android SDK root directory path作者: jingzizx 时间: 2017-5-3 08:08
第一个问题是没有配置SDK的环境变量,他要使用里面的工具作者: jingzizx 时间: 2017-5-3 08:09
deviceName是设备名字吧,记得可以通过adb命令查看吧
你一个个的解决问题作者: 神仙也考试 时间: 2017-5-3 08:55
Error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.