Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone Emulator exited with code 8 during Cordova Multi Device Hybrid App Build

While building a Cordova Multi Device Hybrid App for windows phone, it is throwing an error.

Error message : The command ""C:\Users\UserName\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" build --platform "Windows Phone" --configuration "Debug" --projectDir . --projectName "AngularJSToDo" --language "en-US" --buildServerUrl "" --buildTarget "PhoneEmulatorWvga512"" exited with code 8.
C:\Users\UserName\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets 99  5   AngularJSToDo

But it is working fine for Android and iphone. Issue is only with Windows phone.

like image 913
Rishi Ravindran Avatar asked Nov 11 '22 03:11

Rishi Ravindran


1 Answers

This error occurs when the required SDKs are not installed on your machine. To resolve this, go to:

  • Programs and Features
  • Right click on Microsoft Visual Studio Ultimate 2013
  • Click change
  • Choose Modify
  • Check "Tools for Maintaining Store Apps for Windows 8" and Windows Phone 8.0 SDK"
  • Click Update

That should install the missing SDK. Then try building again after restarting Visual Studio.

Taken from the official documentation.

like image 82
Priyank Avatar answered Nov 14 '22 23:11

Priyank