0

I have installed all third party setups required for "Multi Device Hybrid Apps" successfully. But when i go to run my app using Visual Studio 2013 it gives me following two errors :

Error 1:    cmd: Command failed with exit code 255  
Error 2: The command ""C:\Users\PC-Name\AppData\Roaming\npm\node_modules\vs-mda\vs-cli"
    prepare --platform Android --configuration Debug --projectDir . --projectName "Test2"
    --language "en-US"" exited with code 8.

I have checked all Environment Variables which are at there right variables.

Kindly tell me how to get rid off from above errors.....

Priyank
  • 1,568
  • 10
  • 15

2 Answers2

1

Exit code 8 often indicates that at least one of the environment variables that Cordova requires for build has not been added to your path. There are three environment variables that must be defined:

1) %JAVA_HOME% -- C:\Program Files(x86)\Java\jdk1.7.0_55

2) %ADT_HOME% -- C:\Users\YOUR_NAME_GOES_HERE\AppData\Local\Android\android-sdk

3) %ANT_HOME% -- C:\apache-ant-1.9.3

Note -- The paths for these tools may be different on your PC. You need to verify the actual install paths for each.

Once you have defined these variables, copy the entry below into your System path variable. Reboot PC after making these changes.

%JAVA_HOME%\bin;%ADT_HOME%\tools;%ADT_HOME%\platform-tools;%ANT_HOME%\bin;

A similar question was covered in an earlier post.

Community
  • 1
  • 1
Ellen
  • 1,189
  • 7
  • 9
  • Thanks Ellen, It really worked for me... But new problem here come again that is : When i run my app using ripple emulator it does not open my running app on google chrome after successfull deployment... Do you know why...? – Sumit Yadav Aug 26 '14 at 16:29
  • This issue is being actively investigated. Try exiting Visual Studio, kill any Chrome processes from the task manager, and reboot the machine. Resuming your work in a new instance of VS should allow you to successfully deploy to Ripple. Let me know if this works for you. – Ellen Aug 26 '14 at 19:17
1

I figured out the real cause, just update your node.js or either remove spaces from project directory path.

For Example :
Before Project Directory Path : C:/Users/Jon Snow/MyProjects/ProjectName
After Project Directory Path : C:/Users/JonSnow/MyProjects/ProjectName