Command failed with exit code 1: E:\New Ionic UI\htt-app\node_modules\cordova-android\lib\getASPath.bat
‘E:\New’ is not recognized as an internal or external command,
operable program or batch file.
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
Remove the spaces in the folder name New Ionic UI
and you should be good.
Yes, I know it is a folder name. From the error you are getting
‘E:\New’ is not recognized as an internal or external command
it points to that the script running doesn’t handle spaces in a file path. To handle spaces, you have to put quotes around the path. But, guessing this is a Cordova script that you didn’t write so the easiest fix is to remove any spaces in the file path.
By default, a script will consider everything before the first space as the command and everything after as any parameters being passed into the command. Hence why it is trying to run E:\New
which isn’t a valid command.
Thanks, it works. I have a project that started two months ago, and there are no issues with the folder path.
1 Like