ionic run failed with error - Command finished with error code 1: cmd /s /c "D:\Android\sdk\tools\android.bat list avds" -
ionic run --verbose --target=nexus9 -l -c -s
the above command fails following log.
log> running command: d:\android\sdk\platform-tools\adb.exe devices
log> command finished error code 0: d:\android\sdk\platform-tools\adb.exe devices
log> running command: d:\android\sdk\platform-tools\adb.exe devices
log> command finished error code 0: d:\android\sdk\platform-tools\adb.exe devices
log> running command: cmd "/s /c "d:\android\sdk\tools\android.bat list avds""
log> command finished error code 1: cmd /s /c "d:\android\sdk\tools\android.bat list avds"
log> error running 1 or more of platforms: error: cmd: command failed exit code 1
from error log, can see fails @ command "d:\android\sdk\tools\android.bat list avds".
when run command "android.bat list avds" manually, following error msg
log> invalid or unsupported command "list avds"
log> supported commands are:
log> android list target
log> android list avd
log> android list device
so, when run command "android.bat list avd" (removing s avds), runs , returns me list of avds.
but i'm confused why ionic run command, uses command "d:\android\sdk\tools\android.bat list avds" instead of "d:\android\sdk\tools\android.bat list avd" , fails.
btw, i'm using ionic 1.7.16 on windows 7 - 64 bit
any advice appreciated, thanks.
there similar questions in forum, without answer, so, asked question.
1. cordova error building on android platform: command failed exit code 1
Comments
Post a Comment