Visual Studio Empty Cordova Multi Device Hybrid App Build Failure [error code 8]

帅比萌擦擦* 提交于 2019-12-08 14:48:28

问题


Having tried to follow all advices, remedies and workarounds including removing and reinstalling the Multi-Device Hybrid Apps for Visual Studio CPT1 I still can't seem to do a successful build of the included "Blank App (Apache Cordova)" project.

Build ends consistently in one single error:

The command ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7
\IDE\Extensions\k04kuuo3.ie0\packages\vs-mda\install" "C:\Program Files (x86)
\nodejs\" "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7
\IDE\Extensions\k04kuuo3.ie0\packages\vs-mda"" exited with code 8.

File    %USERPROFILE%\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets
Line    108
Column  5
Project BlankCordovaApp1

Environment settings:

ADT_HOME    %USERPROFILE%\AppData\Local\Android\android-sdk
ANT_HOME    C:\apache-ant-1.9.3
GIT_HOME    C:\Program Files (x86)\Git\cmd
JAVA_HOME   C:\Program Files (x86)\Java\jdk1.7.0_55
PATH    %JAVA_HOME%\bin;%ANT_HOME%\bin;%ADT_HOME%\platform-tools;%ADT_HOME%\tools;
    C:\Program Files (x86)\nodejs\;C:\Program Files (x86)\Windows Kits\8.1\Windows 
    Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;
    C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\
(contains no reference to "Platform")

Your kind help is very much appreciated, Thanks
Ian


回答1:


I just ran into this on one of my PCs and here's how I got it fixed:

  1. Quit Visual Studio
  2. Open the Android SDK manager by typing the Windows key and then "SDK manager", hit enter
  3. Install Android Build Tools Rev 19 by checking the box next to it and clicking Install packages
  4. Accept the license
  5. Open Visual Studio and your project, then run it again

Jordan (Microsoft, Multi-Device Hybrid Apps tools team)




回答2:


Finally the light bulb went on for me: The problem was the install batch files not being able to locate xcopy.exe and therefore the simple remedy was to just extend the path variable with
%SystemRoot%\system32;
The build now runs without further errors.




回答3:


Thanks Jordan and Ian.

I ended up doing both.

I ran the Android SDK manager to install the Android Build Tools Rev 19 as well as some other updates.

I also added "%SystemRoot%\system32;" to the PATH environment variable.

Everything running as it should.



来源:https://stackoverflow.com/questions/23849006/visual-studio-empty-cordova-multi-device-hybrid-app-build-failure-error-code-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!