Visual Studio企业2015年RC科尔多瓦的Andr​​oid建立退出code 1 [英] Visual Studio Enterprise 2015 RC Cordova Android Build Exit Code 1

查看:566
本文介绍了Visual Studio企业2015年RC科尔多瓦的Andr​​oid建立退出code 1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的Visual Studio 2015年企业RC开发科尔多瓦的应用程序。该应用程序工作正常,并在我的三星Galaxy S6优良的设备正在测试两天左右。有一天,午休后,我回到了我的应用程序,并开始接受一个错误,当我试图部署到任何一个仿真器或读取设备

  CMD:命令失败,退出code 1

在大约两天研究这个问题,我还没有找到一个解决。我无法测试我的应用程序除了在涟漪的环境,这是不是测试这个程序非常有用。

下面是相关的输出:

  1 GT; -  code-创:
1> [mergemanifest]找到删除目标文件
1> [mergemanifest]合并AndroidManifest文件合并成一个。
1> [mergemanifest]清单合并禁用。使用项目清单而已。
1> [回应]使用AIDL文件...
1> [AIDL]没有AIDL文件进行编译。
1> [回应] ----------
1> [回应]使用RenderScript文件...
1> [回应] ----------
1> [回应]处理资源...
1> [AAPT]生成资源ID ...
1> [AAPT] D:\\栈的解决方案\\ StackTFSSolutions \\ NRCA手机应用程序\\为approot \\ \\平台的Andr​​oid \\蚂蚁构建\\ AndroidManifest.xml中:6:错误:错误:字符串类型不允许(在'screenOrientation,值为肖像) 。
1> [AAPT]
1>命令完成了错误code 1:CMD / S / C,D:\\栈的解决方案\\ StackTFSSolutions \\ NRCA手机应用程序\\为approot \\ \\平台的Andr​​oid \\科尔多瓦\\运行build.bat--debug --ant
1> ERROR建设的平台之一:错误:CMD:命令失败,退出code 1
1>您可能没有所需的环境或操作系统来构建这个项目
1> MDAVSCLI:错误:CMD:命令失败,退出code 1


解决方案

花了3小时这个从2013年开始迁移到VS 2015年后

解决方案来了,当我换工具>>选项>>项目和解决方案>>生成和运行(建设输出和构建日志)的详细程度来诊断即可。这给了我,为什么它没有被建造更多的信息。

我在我的情况下,发现了一个科尔多瓦 - 插件的文件传输是造成它,所以我卸载它并重新安装它和中提琴它的作品!

I am using Visual Studio Enterprise 2015 RC to develop a Cordova app. The app was working fine and being tested on my Samsung Galaxy S6 device fine for about two days. One day, after a lunch break, I came back to my app and started receiving an error when I tried to deploy to either an emulator or a device that read

cmd: Command failed with exit code 1

After about two days of researching this issue, I have yet to find a fix. I cannot test my app except in the "Ripple" environment, which is not useful for testing this app.

Here is the relevant output:

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

解决方案

Spent 3 hours on this one after migrating to vs 2015 from 2013.

The solution came when I changed Tools>>Options>>Projects and Solutions>>Build and Run (build output and build log) verbosity to Diagnostic. Which gave me more information as to why it was not building.

I discovered in my case a cordova-plugin-file transfer was causing it, so I uninstalled it and reinstalled it and viola it works!

这篇关于Visual Studio企业2015年RC科尔多瓦的Andr​​oid建立退出code 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆