|
Appium,启动都正常,在执行ride后,提示:
info: [debug] Error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
我安装了Appium(AppiumForWindows_1_4_16_1)、夜神模拟器
ride命令如下:
Open Application http://localhost:4723/wd/hub platformName=Android platformVersion=23 deviceName=NoxPlayer app=E:/app-debug.apk
'deviceName我是瞎蒙的,这个要从哪里获取值?哪个值?看样子好像是模拟器的名称,但不知道在哪里看!
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 |
|