简体   繁体   English

Phonegap在Windows 8.1上运行android错误:无法识别命令中的用户名

[英]Phonegap run android error on windows 8.1: not recognizing User name in command

I am trying to use Phonegap on Windows 8.1 system for Android development. 我正在尝试在Windows 8.1系统上使用Phonegap进行Android开发。 I have connected my admin account with my Outlook account. 我已将我的管理员帐户与Outlook帐户关联。 So my User name is "Aditya Mohan". 因此,我的用户名为“ Aditya Mohan”。

When I try running the command 当我尝试运行命令时

phonegap run android phonegap运行android

it gives the error 它给出了错误

'C:\Users\Aditya' is not recognized as an internal or external command,operable program or batch file.
[error] cmd: Command failed with exit code 1

It is giving error with only half part of the User name. 仅用户名的一半出现错误。 I can't change my account name. 我无法更改我的帐户名。 Please provide a solution 请提供解决方案

在此处输入图片说明

在C的根目录下创建一个Phonegap文件夹,并在该目录中执行phonegap create命令

* FIX * * 修复 *

If your like me this has had you running in circles trying to throw your Dev Machine out the window. 如果您像我一样,这让您围成一圈试图将您的Dev Machine扔出窗外。

Its actually quit simple. 它实际上退出很简单。

A lot of older systems developed are unable to recognize special character sets and that includes the space, well sense you cant change your account name on your Windows Device, What should you do? 许多开发的较旧的系统无法识别特殊字符集,其中包括空格,很明显您无法在Windows设备上更改帐户名,该怎么办?

I don't recommend using your "Users" folder but that is an option, simply don't put your project in a folder address that uses [SPACES] or special characters. 我不建议您使用“用户”文件夹,但这是一个选择,只是不要将您的项目放在使用[SPACES]或特殊字符的文件夹地址中。 Keep it clean and concise, works better in the end. 保持简洁简洁,最终效果更好。

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

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