PhoneGap的科尔多瓦Android的项目已经存在“或运行时错误 [英] Phonegap cordova android 'project already exists' or runtime error

查看:121
本文介绍了PhoneGap的科尔多瓦Android的项目已经存在“或运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我张贴在这里,因为这是推动我疯了。

I post here because this is driving me crazy.

我试图让PhoneGap的工作这样:
我安装了ADT束(日食+ ADT插件+安卓SDK) - 顺便说一句>他们真的应该更新的PhoneGap入门教程这仍然是告诉你要安装所有这些单独而是Android SDK中的它给你一个链接ADT包...

I'm trying to get phonegap to work so: I installed ADT bundle (eclipse+adt plugin + android SDK) -> by the way their really should update that phonegap getting started tutorial which is still telling you to install all of that separately but instead of android SDK it gives you a link to the ADT bundle...

反正
我已将我的环境变量,这样我就可以输入java,javac的,机器人,蚂蚁或其他一切都很好。

Anyway I have set my environment variables, so i can type java, javac, android, ant or whatever everything is fine.

现在,当我去用CMD(我是在Windows上)和类型我科尔多瓦-的Andr​​oid / bin文件夹创建D:为/ dev /安卓/ phonegaptestphonegaptestphonegaptest它告诉我项目已经存在'。虽然目标文件夹只是一个空文件夹。

Now when i go to my cordova-android/bin folder with cmd (i'm on windows) and type 'create "d:/dev/android/phonegaptest" "phonegaptest" "phonegaptest"' it tells me 'project already exists'. While the target folder is just an empty folder.

如果不是我输入'创建D:的/ dev /安卓/这犯规的任何文件夹名称存在呢。phonegaptestphonegaptest它告诉我'科尔多瓦-的Andr​​oid \\ BIN \\ create.js 181,5 MS的JScript运行时错误路径未找到

if instead I type 'create "d:/dev/android/any folder name which doesnt exist yet" "phonegaptest" "phonegaptest"' it tells me 'cordova-android\bin\create.js 181,5 MS JScript runtime error path not found'

我怎样才能得到这个工作?非常感谢

How can I get this to work ? Thanks a lot

推荐答案

好吧我知道了。

显然你必须把com.something的包名或JS的错误会来。这似乎为Java开发人员很明显,但PhoneGap的是使用了大量的Web开发者谁不知道什么包的。所以应该重新指定,感谢这个写得不好的文档。
该错误不告诉你包的名字什么的问题,因此也没有帮助。

Apparently you HAVE TO put com.something for package name or the JS error will come. This may seem obvious for java developers but PhoneGap is used by a lot of web devs who doesn't know anything about packages. So it SHOULD be specified, thanks again to this poorly written doc. The error doesn't tell you anything about package name problem so it doesn't help either.

另一件事:如果该文件夹已经存在,它会告诉你'项目已经存在所以就不要手动创建文件夹

Another thing: if the folder already exist it will tell you 'project already exist' so just don't create the folder manually.

希望这有助于。

这篇关于PhoneGap的科尔多瓦Android的项目已经存在“或运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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