Visual Studio Enterprise 2015 RC Cordova Android 构建退出代码 1

Visual Studio Enterprise 2015 RC Cordova Android Build Exit Code 1

我正在使用 Visual Studio Enterprise 2015 RC 开发 Cordova 应用程序。该应用程序运行良好,并在我的三星 Galaxy S6 设备上进行了大约两天的测试。一天,午休后,我回到我的应用程序,当我尝试部署到一个模拟器或读取

的设备时开始收到错误消息
cmd: Command failed with exit code 1

经过大约两天的研究这个问题,我还没有找到解决办法。除了在 "Ripple" 环境中,我无法测试我的应用程序,这对测试此应用程序没有用。

这里是相关的输出:

1>  -code-gen:
1>  [mergemanifest] Found Deleted Target File
1>  [mergemanifest] Merging AndroidManifest files into one.
1>  [mergemanifest] Manifest merger disabled. Using project manifest only.
1>       [echo] Handling aidl files...
1>       [aidl] No AIDL files to compile.
1>       [echo] ----------
1>       [echo] Handling RenderScript files...
1>       [echo] ----------
1>       [echo] Handling Resources...
1>       [aapt] Generating resource IDs...
1>       [aapt] D:\Stack Solutions\StackTFSSolutions\NRCA Phone App\AppRoot\platforms\android\ant-build\AndroidManifest.xml:6: error: Error: String types not allowed (at 'screenOrientation' with value 'Portrait').
1>       [aapt]
1>  Command finished with error code 1: cmd /s /c ""D:\Stack Solutions\StackTFSSolutions\NRCA Phone App\AppRoot\platforms\android\cordova\build.bat" --debug --ant "
1>ERROR building one of the platforms : error : cmd: Command failed with exit code 1
1>  You may not have the required environment or OS to build this project
1>MDAVSCLI : error : cmd: Command failed with exit code 1

卸载 Nodejs 并安装节点(版本 0.10.28)

Nodejs 0.10.28 Installation source

为我工作

从 2013 年迁移到 vs 2015 后,在这个上花了 3 个小时。

当我将工具>>选项>>项目和解决方案>>构建和运行(构建输出和构建日志)详细程度更改为诊断 时,解决方案就出现了。这给了我更多关于为什么它没有建立的信息。

我发现在我的案例中是 cordova-plugin-file transfer 导致了它,所以我卸载它并重新安装它并且 viola 可以正常工作!