Failed to start an Appium session

Failed to start an Appium session, err was: Error: Command failed: C:\Windows\system32\cmd.exe /s /c "“D:\Program Files\android-sdk\platform-tools\adb.exe” -s emulator-5554 “forward tcp:4724 tcp:4724"”

Android Debug Bridge version 1.0.31

-a - directs adb to listen on all interfaces for a connection
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s - directs command to the device or emulator with the given
serial number or qualifier. Overrides ANDROID_SERIAL
environment variable.
-p - simple product name like ‘sooner’, or
a relative/absolute path to a product
out directory like ‘out/target/product/sooner’.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
-H - Name of adb server host (default: localhost)
-P - Port of adb server (default: 5037)
devices [-l] - list all connected devices
(‘-l’ will also list device qualifiers)
connect [:] - connect to a device via TCP/IP
Port 5555 is used by default if no port number is specified.
disconnect [[:]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devices.

device commands:
adb push - copy file/dir to device
adb pull [] - copy file/dir from device
adb sync [ ] - copy host->device only if changed
(-l means list but don’t copy)
(see ‘adb help all’)
adb shell - run remote shell interactively
adb shell - run remote shell command
adb emu - run emulator console command
adb logcat [ ] - View device log
adb forward --list - list all forward socket connections.
the format is a list of lines with the following format:
" " " " “\n”
adb forward - forward socket connections
forward specs are one of:
tcp:
localabstract:
localreserved:
localfilesystem:
dev:
jdwp: (remote only)
adb forward --no-rebind
- same as ‘adb forward ’ but fails
if is already forwarded
adb forward --remove - remove a specific forward socket connection
adb forward --remove-all - remove all forward socket connections
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] [–algo --key --iv ]
- push this package file to the device and install it
(‘-l’ means forward-lock the app)
(‘-r’ means reinstall the app, keeping its data)
(‘-s’ means install on SD card instead of internal storage)
(‘–algo’, ‘–key’, and ‘–iv’ mean the file is encrypted already)
adb uninstall [-k] - remove this app package from the device
(‘-k’ means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.

adb backup [-f ] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem] [<packages…>]
- write an archive of the device’s data to .
If no -f option is supplied then the data is written
to “backup.ab” in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)
(-obb|-noobb enable/disable backup of any installed apk expansion
(aka .obb) files associated with each application; the default
is noobb.)
(-shared|-noshared enable/disable backup of the device’s
shared storage / SD card contents; the default is noshared.)
(-all means to back up all installed applications)
(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)
(<packages…> is the list of applications to be backed up. If
the -all or -shared flags are passed, then the package
list is optional. Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)

adb restore - restore device contents from the backup archive

adb help - show this help message
adb version - show version num

scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints:
adb get-devpath - prints:
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip - restarts the adbd daemon listening on TCP on the specified port
networking:
adb ppp [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ ]
can be interpreted in several ways:

  • If is not specified, both /system and /data partitions will be updated.

  • If it is “system” or “data”, only the corresponding partition
    is updated.

environmental variables:
ADB_TRACE - Print debug information. A comma separated list of the following values
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.

info: [debug] Error: Command failed: C:\Windows\system32\cmd.exe /s /c "“D:\Program Files\android-sdk\platform-tools\adb.exe” -s emulator-5554 “forward tcp:4724 tcp:4724"”
Android Debug Bridge version 1.0.31

-a - directs adb to listen on all interfaces for a connection
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s - directs command to the device or emulator with the given
serial number or qualifier. Overrides ANDROID_SERIAL
environment variable.
-p - simple product name like ‘sooner’, or
a relative/absolute path to a product
out directory like ‘out/target/product/sooner’.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
-H - Name of adb server host (default: localhost)
-P - Port of adb server (default: 5037)
devices [-l] - list all connected devices
(‘-l’ will also list device qualifiers)
connect [:] - connect to a device via TCP/IP
Port 5555 is used by default if no port number is specified.
disconnect [[:]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devices.

device commands:
adb push - copy file/dir to device
adb pull [] - copy file/dir from device
adb sync [ ] - copy host->device only if changed
(-l means list but don’t copy)
(see ‘adb help all’)
adb shell - run remote shell interactively
adb shell - run remote shell command
adb emu - run emulator console command
adb logcat [ ] - View device log
adb forward --list - list all forward socket connections.
the format is a list of lines with the following format:
" " " " “\n”
adb forward - forward socket connections
forward specs are one of:
tcp:
localabstract:
localreserved:
localfilesystem:
dev:
jdwp: (remote only)
adb forward --no-rebind
- same as ‘adb forward ’ but fails
if is already forwarded
adb forward --remove - remove a specific forward socket connection
adb forward --remove-all - remove all forward socket connections
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] [–algo --key --iv ]
- push this package file to the device and install it
(‘-l’ means forward-lock the app)
(‘-r’ means reinstall the app, keeping its data)
(‘-s’ means install on SD card instead of internal storage)
(‘–algo’, ‘–key’, and ‘–iv’ mean the file is encrypted already)
adb uninstall [-k] - remove this app package from the device
(‘-k’ means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.

adb backup [-f ] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem] [<packages…>]
- write an archive of the device’s data to .
If no -f option is supplied then the data is written
to “backup.ab” in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)
(-obb|-noobb enable/disable backup of any installed apk expansion
(aka .obb) files associated with each application; the default
is noobb.)
(-shared|-noshared enable/disable backup of the device’s
shared storage / SD card contents; the default is noshared.)
(-all means to back up all installed applications)
(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)
(<packages…> is the list of applications to be backed up. If
the -all or -shared flags are passed, then the package
list is optional. Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)

adb restore - restore device contents from the backup archive

adb help - show this help message
adb version - show version num

scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints:
adb get-devpath - prints:
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip - restarts the adbd daemon listening on TCP on the specified port
networking:
adb ppp [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ ]
can be interpreted in several ways:

  • If is not specified, both /system and /data partitions will be updated.

  • If it is “system” or “data”, only the corresponding partition
    is updated.

environmental variables:
ADB_TRACE - Print debug information. A comma separated list of the following values
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.

at ChildProcess.exithandler (child_process.js:751:12)
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: Command failed: C:\Windows\system32\cmd.exe /s /c ""D:\Program Files\android-sdk\platform-tools\adb.exe" -s emulator-5554 "forward tcp:4724 tcp:4724""\nAndroid Debug Bridge version 1.0.31\r\n\r\n -a - directs adb to listen on all interfaces for a connection\r\n -d - directs command to the only connected USB device\r\n returns an error if more than one USB device is present.\r\n -e - directs command to the only running emulator.\r\n returns an error if more than one emulator is running.\r\n -s - directs command to the device or emulator with the given\r\n serial number or qualifier. Overrides ANDROID_SERIAL\r\n environment variable.\r\n -p - simple product name like ‘sooner’, or\r\n a relative/absolute path to a product\r\n out directory like ‘out/target/product/sooner’.\r\n If -p is not specified, the ANDROID_PRODUCT_OUT\r\n environment variable is used, which must\r\n be an absolute path.\r\n -H - Name of adb server host (default: localhost)\r\n -P - Port of adb server (default: 5037)\r\n devices [-l] - list all connected devices\r\n (‘-l’ will also list device qualifiers)\r\n connect [:] - connect to a device via TCP/IP\r\n Port 5555 is used by default if no port number is specified.\r\n disconnect [[:]] - disconnect from a TCP/IP device.\r\n Port 5555 is used by default if no port number is specified.\r\n Using this command with no additional arguments\r\n will disconnect from all connected TCP/IP devices.\r\n\r\ndevice commands:\r\n adb push - copy file/dir to device\r\n adb pull [] - copy file/dir from device\r\n adb sync [ ] - copy host->device only if changed\r\n (-l means list but don’t copy)\r\n (see ‘adb help all’)\r\n adb shell - run remote shell interactively\r\n adb shell - run remote shell command\r\n adb emu - run emulator console command\r\n adb logcat [ ] - View device log\r\n adb forward --list - list all forward socket connections.\r\n the format is a list of lines with the following format:\r\n " " " " "\n"\r\n adb forward - forward socket connections\r\n forward specs are one of: \r\n tcp:\r\n localabstract:\r\n localreserved:\r\n localfilesystem:\r\n dev:\r\n jdwp: (remote only)\r\n adb forward --no-rebind \r\n - same as ‘adb forward ’ but fails\r\n if is already forwarded\r\n adb forward --remove - remove a specific forward socket connection\r\n adb forward --remove-all - remove all forward socket connections\r\n adb jdwp - list PIDs of processes hosting a JDWP transport\r\n adb install [-l] [-r] [-s] [–algo --key --iv ] \r\n - push this package file to the device and install it\r\n (‘-l’ means forward-lock the app)\r\n (‘-r’ means reinstall the app, keeping its data)\r\n (‘-s’ means install on SD card instead of internal storage)\r\n (‘–algo’, ‘–key’, and ‘–iv’ mean the file is encrypted already)\r\n adb uninstall [-k] - remove this app package from the device\r\n (‘-k’ means keep the data and cache directories)\r\n adb bugreport - return all information from the device\r\n that should be included in a bug report.\r\n\r\n adb backup [-f ] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem] [<packages…>]\r\n - write an archive of the device’s data to .\r\n If no -f option is supplied then the data is written\r\n to "backup.ab" in the current directory.\r\n (-apk|-noapk enable/disable backup of the .apks themselves\r\n in the archive; the default is noapk.)\r\n (-obb|-noobb enable/disable backup of any installed apk expansion\r\n (aka .obb) files associated with each application; the default\r\n is noobb.)\r\n (-shared|-noshared enable/disable backup of the device’s\r\n shared storage / SD card contents; the default is noshared.)\r\n (-all means to back up all installed applications)\r\n (-system|-nosystem toggles whether -all automatically includes\r\n system applications; the default is to include system apps)\r\n (<packages…> is the list of applications to be backed up. If\r\n the -all or -shared flags are passed, then the package\r\n list is optional. Applications explicitly given on the\r\n command line will be included even if -nosystem would\r\n ordinarily cause them to be omitted.)\r\n\r\n adb restore - restore device contents from the backup archive\r\n\r\n adb help - show this help message\r\n adb version - show version num\r\n\r\nscripting:\r\n adb wait-for-device - block until device is online\r\n adb start-server - ensure that there is a server running\r\n adb kill-server - kill the server if it is running\r\n adb get-state - prints: offline | bootloader | device\r\n adb get-serialno - prints: \r\n adb get-devpath - prints: \r\n adb status-window - continuously print device status for a specified device\r\n adb remount - remounts the /system partition on the device read-write\r\n adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program\r\n adb reboot-bootloader - reboots the device into the bootloader\r\n adb root - restarts the adbd daemon with root permissions\r\n adb usb - restarts the adbd daemon listening on USB\r\n adb tcpip - restarts the adbd daemon listening on TCP on the specified port\r\nnetworking:\r\n adb ppp [parameters] - Run PPP over USB.\r\n Note: you should not automatically start a PPP connection.\r\n refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1\r\n [parameters] - Eg. defaultroute debug dump local notty usepeerdns\r\n\r\nadb sync notes: adb sync [ ]\r\n can be interpreted in several ways:\r\n\r\n - If is not specified, both /system and /data partitions will be updated.\r\n\r\n - If it is "system" or "data", only the corresponding partition\r\n is updated.\r\n\r\nenvironmental variables:\r\n ADB_TRACE - Print debug information. A comma separated list of the following values\r\n 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp\r\n ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.\r\n ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.\r\n)”,“killed”:false,“code”:1,“signal”:null,“cmd”:“C:\Windows\system32\cmd.exe /s /c ""D:\Program Files\android-sdk\platform-tools\adb.exe" -s emulator-5554 "forward tcp:4724 tcp:4724""”,“origValue”:“Command failed: C:\Windows\system32\cmd.exe /s /c ""D:\Program Files\android-sdk\platform-tools\adb.exe" -s emulator-5554 "forward tcp:4724 tcp:4724""\nAndroid Debug Bridge version 1.0.31\r\n\r\n -a - directs adb to listen on all interfaces for a connection\r\n -d - directs command to the only connected USB device\r\n returns an error if more than one USB device is present.\r\n -e - directs command to the only running emulator.\r\n returns an error if more than one emulator is running.\r\n -s - directs command to the device or emulator with the given\r\n serial number or qualifier. Overrides ANDROID_SERIAL\r\n environment variable.\r\n -p - simple product name like ‘sooner’, or\r\n a relative/absolute path to a product\r\n out directory like ‘out/target/product/sooner’.\r\n If -p is not specified, the ANDROID_PRODUCT_OUT\r\n environment variable is used, which must\r\n be an absolute path.\r\n -H - Name of adb server host (default: localhost)\r\n -P - Port of adb server (default: 5037)\r\n devices [-l] - list all connected devices\r\n (‘-l’ will also list device qualifiers)\r\n connect [:] - connect to a device via TCP/IP\r\n Port 5555 is used by default if no port number is specified.\r\n disconnect [[:]] - disconnect from a TCP/IP device.\r\n Port 5555 is used by default if no port number is specified.\r\n Using this command with no additional arguments\r\n will disconnect from all connected TCP/IP devices.\r\n\r\ndevice commands:\r\n adb push - copy file/dir to device\r\n adb pull [] - copy file/dir from device\r\n adb sync [ ] - copy host->device only if changed\r\n (-l means list but don’t copy)\r\n (see ‘adb help all’)\r\n adb shell - run remote shell interactively\r\n adb shell - run remote shell command\r\n adb emu - run emulator console command\r\n adb logcat [ ] - View device log\r\n adb forward --list - list all forward socket connections.\r\n the format is a list of lines with the following format:\r\n " " " " "\n"\r\n adb forward - forward socket connections\r\n forward specs are one of: \r\n tcp:\r\n localabstract:\r\n localreserved:\r\n localfilesystem:\r\n dev:\r\n jdwp: (remote only)\r\n adb forward --no-rebind \r\n - same as ‘adb forward ’ but fails\r\n if is already forwarded\r\n adb forward --remove - remove a specific forward socket connection\r\n adb forward --remove-all - remove all forward socket connections\r\n adb jdwp - list PIDs of processes hosting a JDWP transport\r\n adb install [-l] [-r] [-s] [–algo --key --iv ] \r\n - push this package file to the device and install it\r\n (‘-l’ means forward-lock the app)\r\n (‘-r’ means reinstall the app, keeping its data)\r\n (‘-s’ means install on SD card instead of internal storage)\r\n (‘–algo’, ‘–key’, and ‘–iv’ mean the file is encrypted already)\r\n adb uninstall [-k] - remove this app package from the device\r\n (‘-k’ means keep the data and cache directories)\r\n adb bugreport - return all information from the device\r\n that should be included in a bug report.\r\n\r\n adb backup [-f ] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem] [<packages…>]\r\n - write an archive of the device’s data to .\r\n If no -f option is supplied then the data is written\r\n to "backup.ab" in the current directory.\r\n (-apk|-noapk enable/disable backup of the .apks themselves\r\n in the archive; the default is noapk.)\r\n (-obb|-noobb enable/disable backup of any installed apk expansion\r\n (aka .obb) files associated with each application; the default\r\n is noobb.)\r\n (-shared|-noshared enable/disable backup of the device’s\r\n shared storage / SD card contents; the default is noshared.)\r\n (-all means to back up all installed applications)\r\n (-system|-nosystem toggles whether -all automatically includes\r\n system applications; the default is to include system apps)\r\n (<packages…> is the list of applications to be backed up. If\r\n the -all or -shared flags are passed, then the package\r\n list is optional. Applications explicitly given on the\r\n command line will be included even if -nosystem would\r\n ordinarily cause them to be omitted.)\r\n\r\n adb restore - restore device contents from the backup archive\r\n\r\n adb help - show this help message\r\n adb version - show version num\r\n\r\nscripting:\r\n adb wait-for-device - block until device is online\r\n adb start-server - ensure that there is a server running\r\n adb kill-server - kill the server if it is running\r\n adb get-state - prints: offline | bootloader | device\r\n adb get-serialno - prints: \r\n adb get-devpath - prints: \r\n adb status-window - continuously print device status for a specified device\r\n adb remount - remounts the /system partition on the device read-write\r\n adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program\r\n adb reboot-bootloader - reboots the device into the bootloader\r\n adb root - restarts the adbd daemon with root permissions\r\n adb usb - restarts the adbd daemon listening on USB\r\n adb tcpip - restarts the adbd daemon listening on TCP on the specified port\r\nnetworking:\r\n adb ppp [parameters] - Run PPP over USB.\r\n Note: you should not automatically start a PPP connection.\r\n refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1\r\n [parameters] - Eg. defaultroute debug dump local notty usepeerdns\r\n\r\nadb sync notes: adb sync [ ]\r\n can be interpreted in several ways:\r\n\r\n - If is not specified, both /system and /data partitions will be updated.\r\n\r\n - If it is "system" or "data", only the corresponding partition\r\n is updated.\r\n\r\nenvironmental variables:\r\n ADB_TRACE - Print debug information. A comma separated list of the following values\r\n 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp\r\n ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.\r\n ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.\r\n”},“sessionId”:null}