我最近在Windows 8.1上运行的Visual Studio 2013中安装了用于Apache Cordova CTP 3的Visual Studio工具。当我尝试运行标准的新Cordova项目(在Android模拟器或设备中)时,我收到以下错误。该项目名为MyCordova01:
Error 20 cmd: Command failed with exit code 8 C:\Users\Me\documents\visual studio 2013\Projects\MyCordova01\MyCordova01\MDAVSCLİ 1 1 MyCordova01
这是构建输出:
1>------ Build started: Project: MyCordova01, Configuration: Debug Android ------
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(97,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling.
1> GeneratedJavascript=
1> C:\Users\Me\documents\visual studio 2013\Projects\MyCordova01\MyCordova01>call "C:\Program Files\nodejs\"\nodevars.bat
1> Your environment has been set up for using Node.js 0.10.26 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\DXXQ5VLG.GQS\packages\vs-mda
1>MDAVSCLİ : error : cmd: Command failed with exit code 8
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
可能是什么问题? 我已经尝试清除Cordova缓存并在vs-mda目录上运行npm-install。
答案 0 :(得分:0)
在code.google.com/p/android/issues/detail?id=77629上附加的aapt.exe似乎解决了这个问题。事实证明问题出在Android Build Tools上。