如何添加的Andr​​oid科尔多瓦的平台? PATH错误?科尔、错误、多瓦、平台

2023-09-12 23:56:13 作者:凉月

我想加入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的文档的一步一步的指示。检查出来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.