我正在使用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
解决方法:
从2013年开始迁移到2015年后,花了3个小时才完成这个.
解决方案来自我将Tools>>选项>>项目和解决方案>>构建和运行(构建输出和构建日志)详细信息更改为Diagnostic.这给了我更多关于它为什么没有建造的信息.
我发现在我的情况下,一个cordova-plugin-file传输导致它,所以我卸载它并重新安装它,并且中提琴工作!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。