本文介绍了科尔多瓦:斜面上的Windows 8添加Android平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了Linux的Andr​​oid应用程序,并想尝试开发它在其他平台如Windows。我已经安装了所有必要的文件(node.js的,ADT捆绑用于窗户,科尔多瓦,PhoneGap的),并拥有这一切正在运行。我可以创建通过Windows命令行的项目。做出了表率项目IVE是:科尔多瓦创建Hello输入com.example.hello的HelloWorld。该项目已成功创建。然后,到了项目的目标添加Android平台使用命令:科尔多瓦-d平台添加机器人。然后来到错误说,

i have developed android applications in linux and wanted to try developing it on other platform like windows. i have installed all the necessary files (node.js, ADT bundle for windows, cordova, phonegap) and have it all running. i can create a project via windows command line. an example project ive made is: cordova create hello com.example.hello HelloWorld. the project was created successfully. then, got to the destination of the project to add android platform with command: cordova -d platform add android. error then came saying,

'C:\Users\My' is not recognized as an internal or external command, operable program or batch file. Command finished with error code 1: C:\Users\My user\.cordova\lib\android\cordova\3.4.0\bin\create.bat --cli,C:\Users\My user\Documents\Android Development\Workspace\hello\platforms\android,com.example.hello,HelloWorld Error: C:\Users\My user\.cordova\lib\android\cordova\3.4.0\bin\create.bat: Command failed with exit code 1 Command failed with exit code 1 at ChildProcess.whenDone (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\src\superspawn.js:126:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:743:16) at Process.ChildProcess._handle.onexit (child_process.js:810:5)

我不知道该怎么办。请,如果你知道或者你有一个想法。张贴

i dont know what to do. please if you know or you have an idea. post it

推荐答案

您似乎有一个丢失的报价问题。你把你的项目中包含空格,也许某处构建sctipt路径的文件夹错过一些报价。

You seem to have a missing quote issue. The folder where you put your project contains spaces and maybe somewhere in the build sctipt the path misses some quotes.

解决您的问题最快的办法是把你的项目在其他地方。

The fastest way to solve your issue would be to put your project somewhere else.

这篇关于科尔多瓦:斜面上的Windows 8添加Android平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 22:32