Cordova 请安装 Android 目标 19 [英] Cordova Please Install Android target 19

查看:27
本文介绍了Cordova 请安装 Android 目标 19的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Cordova-3.3.0,在尝试为 Android 创建项目时,出现以下错误 -

I am using Cordova-3.3.0, and when trying to create a project for Android I am getting this following error -

错误:请安装 Android 目标 19(Android 最新的 SDK).

Error: Please install Android target 19 (the Android newest SDK).

我安装了最新的 Android 以及 Android 18 和 17.即使我使用 Cordova-3.2.0,我也会得到相同的结果

I have the latest android installed along with the Android 18 and 17. And even if I use Cordova-3.2.0 I get the same result

未找到 Android 目标 18

Android target 18 not found

.

请任何人都可以提出可能是什么问题?

Please can anyone suggest what might be the problem?

我将以下内容与cordova一起使用-蚂蚁版本 1.9.2java 1.7.0_45

I am using the following along with cordova - ant version 1.9.2 java 1.7.0_45

推荐答案

您是否在 Path 中正确设置了 android SDK 工具?

Have you correctly set android SDK tools in your Path ?

要使 Cordova 命令行工具正常工作,您需要在 PATH 环境中包含 SDK 的工具和平台工具目录.在 Mac 上,您可以使用文本编辑器创建或修改 ~/.bash_profile 文件,添加如下一行,具体取决于 SDK 的安装位置:

For Cordova command-line tools to work, you need to include the SDK's tools and platform-tools directories in your PATH environment. On Mac, you can use a text editor to create or modify the ~/.bash_profile file, adding a line such as the following, depending on where the SDK installs:

在您需要安装正确版本的 Android(在您的情况下为 19)之后,您必须安装 SDK 并将 tools 和 platform-tools 目录包含到您的路径中.

You have to install the SDK and include tools and platform-tools directories to your path, after you need to install correct versions of Android (19 in your case).

这篇关于Cordova 请安装 Android 目标 19的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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