如何添加的Andr​​oid科尔多瓦的平台? PATH错误? [英] How to add android to cordova platform? PATH error?

查看:95
本文介绍了如何添加的Andr​​oid科尔多瓦的平台? PATH错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想加入Android作为一个科尔多瓦平台,使我能够建立与PhoneGap的应用程序。当我尝试添加机器人是这样的:

I am trying to add android as a cordova platform so that I can build apps with phonegap. When I tried to add android thus:

$ cordova platform add android

我收到此错误信息:

I received this error message:

[错误:命令机器人失败。请确保您有最新的   Android的SDK安装,而 Android版命令(在工具/   文件夹)添加到您的路径。输出:/ bin / sh的:机器人:命令不   发现]

[Error: The command android failed. Make sure you have the latest Android SDK installed, and the android command (inside the tools/ folder) added to your path. Output: /bin/sh: android: command not found ]

我已经安装了最新的Andr​​oid SDK,所以我想我需要添加机器人到我的道路。我GOOGLE了关于如何做到这一点,并搜查这个论坛,但我有命令行使用小知识,我不明白的答案。

I do have the latest Android SDK installed, so I suppose I need to add android to my path. I've googled on how to do that, and searched this forum, but I have little knowledge of command line use and I don't understand the answers.

如果有人可以提供非常简单的步骤加入到Android的我的道路,我将不胜感激。

If someone could provide very simple steps to add android to my path, I would be most grateful.

推荐答案

有在PhoneGap的文档的一步一步的指示。检查出来<一个href="http://docs.phonegap.com/en/2.8.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android">here,然后转到步骤3B 。我联系到了2.8版本的PhoneGap,因为从咋一看似乎并没有解释如何设置路径上的3.0版本文档。

There's step-by-step instructions on the PhoneGap Doc's. Check it out here, and then go to Step 3B. I linked to the 2.8 version of PhoneGap since from a quick look it doesn't seem to explain how to set up PATH on the 3.0 version docs.

这篇关于如何添加的Andr​​oid科尔多瓦的平台? PATH错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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