ionic run --verbose --target=Nexus9 -l -c -s
The above command fails with the following log.
LOG> Running command: D:\Android\sdk\platform-tools\adb.exe devices
LOG> Command finished with 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 with 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 with error code 1: cmd /s /c "D:\Android\sdk\tools\android.bat list avds"
LOG> ERROR running one or more of the platforms: Error: cmd: Command failed with exit code 1
From the Error Log, I can see that it fails at the command “D:\Android\sdk\tools\android.bat list avds”.
When I run this command “android.bat list avds” manually, I get the 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 I run the command “android.bat list avd” (removing s from avds), it runs successfully and returns me the list of avds.
But I’m confused why ionic run command, uses the command “D:\Android\sdk\tools\android.bat list avds” instead of “D:\Android\sdk\tools\android.bat list avd” and fails.
BTW, I’m using ionic 1.7.16 on windows 7 - 64 bit
Any advice is greatly appreciated, Thanks.