Getting below Appium error, and there is no space on the PATH of my Android SDK, would appreciate any help.
Launching Appium server with command: C:\Users\msayem\Appium\node.exe lib\server\main.js --address 172.21.58.216 --port 4723 --app C:\Users\msayem\SampleApp\selendroid-test-app-0.17.0.apk --platform-name Android --platform-version 23 --automation-name Appium --log-no-color
info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
info: Appium REST http interface listener started on 172.21.58.216:4723
info: [debug] Non-default server args: {“app”:“C:\Users\msayem\SampleApp\selendroid-test-app-0.17.0.apk”,“address”:“172.21.58.216”,“logNoColors”:true,“platformName”:“Android”,“platformVersion”:“23”,“automationName”:“Appium”}
info: Console LogLevel: debug
info: → POST /wd/hub/session {“desiredCapabilities”:{“platformVersion”:“6.0.1”,“platformName”:“Android”,“deviceName”:“Samsung”,“appActivity”:“.HomeScreenActivity”,“browserName”:“”,“appPackage”:“io.selendroid.testapp”}}
info: Client User-Agent string: Apache-HttpClient/4.5.2 (Java/1.7.0_80)
info: [debug] Using local app from command line: C:\Users\msayem\SampleApp\selendroid-test-app-0.17.0.apk
info: [debug] Creating new appium session 0665aa3c-8cb3-4f69-a5a8-7b60baeff697
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.8.0_91
info: [debug] Checking whether adb is present
warn: The ANDROID_HOME environment variable is not set to the Android SDK root directory path. ANDROID_HOME is required for compatibility with SDK 23+. Checking along PATH for adb.
info: [debug] executing cmd: where adb
info: [debug] Using adb from C:\Users\msayem\Android\platform-tools\adb.exeinfo: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices…
info: [debug] executing cmd: “C:\Users\msayem\Android\platform-tools\adb.exe” devices
info: [debug] 1 device(s) connected
info: Found device 161e7681
info: [debug] Setting device id to 161e7681
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing cmd: “C:\Users\msayem\Android\platform-tools\adb.exe” -s 161e7681 wait-for-device
info: [debug] executing cmd: “C:\Users\msayem\Android\platform-tools\adb.exe” -s 161e7681 shell “echo ‘ready’”
info: [debug] Starting logcat capture
error: Logcat capture failed: spawn “C:\Users\msayem\Android\platform-tools\adb.exe” ENOENT
info: [debug] Stopping logcat capture
info: ← POST /wd/hub/session - - ms - -
info: → POST /wd/hub/session {“desiredCapabilities”:{“platformVersion”:“6.0.1”,“deviceName”:“Samsung”,“platformName”:“Android”,“browserName”:“”,“appActivity”:“.HomeScreenActivity”,“appPackage”:“io.selendroid.testapp”}}
info: Client User-Agent string: Apache-HttpClient/4.5.2 (Java/1.7.0_80)
error: Failed to start an Appium session, err was: Error: Requested a new session but one was in progress
info: [debug] Error: Requested a new session but one was in progress
at [object Object].Appium.start (C:\Users\msayem\Appium\node_modules\appium\lib\appium.js:139:15)
at exports.createSession (C:\Users\msayem\Appium\node_modules\appium\lib\server\controller.js:188:16)
at Layer.handle [as handle_request] (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:110:13)
at Route.dispatch (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:91:3)
at Layer.handle [as handle_request] (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
at C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:267:22
at Function.proto.process_params (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:321:12)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:261:10)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:100:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at C:\Users\msayem\Appium\node_modules\appium\lib\server\controller.js:39:7
at Layer.handle [as handle_request] (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:110:13)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
at Route.dispatch (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\route.js:91:3)
at Layer.handle [as handle_request] (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
at C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:267:22
at Function.proto.process_params (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:321:12)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:261:10)
at methodOverride (C:\Users\msayem\Appium\node_modules\appium\node_modules\method-override\index.js:79:5)
at Layer.handle [as handle_request] (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
at trim_prefix (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:302:13)
at C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:270:7
at Function.proto.process_params (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:321:12)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:261:10)
at logger (C:\Users\msayem\Appium\node_modules\appium\node_modules\morgan\index.js:136:5)
at Layer.handle [as handle_request] (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
at trim_prefix (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:302:13)
at C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:270:7
at Function.proto.process_params (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:321:12)
at next (C:\Users\msayem\Appium\node_modules\appium\node_modules\express\lib\router\index.js:261:10)
at C:\Users\msayem\Appium\node_modules\appium\node_modules\body-parser\lib\read.js:111:5
at done (C:\Users\msayem\Appium\node_modules\appium\node_modules\body-parser\node_modules\raw-body\index.js:248:14)
at IncomingMessage.onEnd (C:\Users\msayem\Appium\node_modules\appium\node_modules\body-parser\node_modules\raw-body\index.js:294:7)
at IncomingMessage.g (events.js:199:16)
at IncomingMessage.emit (events.js:104:17)
at _stream_readable.js:908:16
at process._tickDomainCallback (node.js:381:11)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Requested a new session but one was in progress)”,“origValue”:“Requested a new session but one was in progress”},“sessionId”:“dcfb89f4-6b68-4c80-9234-a1ea20e687bf”}
info: ← POST /wd/hub/session 500 19.919 ms - 250
undefined