简体   繁体   English

Cordova:无法在Windows 8上添加android平台

[英]Cordova: Cant add android platform on windows 8

i have developed android applications in linux and wanted to try developing it on other platform like windows. 我已经在Linux中开发了android应用程序,并想尝试在Windows等其他平台上进行开发。 i have installed all the necessary files (node.js, ADT bundle for windows, cordova, phonegap) and have it all running. 我已经安装了所有必需的文件(node.js,用于Windows的ADT捆绑包,cordova,phonegap)并全部运行。 i can create a project via windows command line. 我可以通过Windows命令行创建一个项目。 an example project ive made is: cordova create hello com.example.hello HelloWorld. 我创建的一个示例项目是:cordova创建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. 然后,使用以下命令到达项目的目的地以添加android平台:cordova -d platform添加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 发表它

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. 解决问题的最快方法是将项目放在其他地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM