android - Cordova 请安装 Android target 19

标签 android html css ant cordova

我正在使用 Cordova-3.3.0,在尝试为 Android 创建元素时出现以下错误 -

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

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

Android target 18 not found

.

谁能提出可能是什么问题?

我将以下内容与 cordova 一起使用 - Ant 版本 1.9.2 Java 1.7.0_45

最佳答案

您是否在路径中正确设置了 android 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 并将工具和平台工具目录包含到您的路径中。

关于android - Cordova 请安装 Android target 19,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20677999/

相关文章:

jquery - 背景大小过渡到另一个页面

javascript - 基于 jQuery 和 Bootstrap 中的 radio 选择扩展表单

javascript - 如何在 phonegap 中将数据从一页传递到另一页?

Android GooglePlayServicesUtil.getErrorDialog() 不显示对话框

android - 更改不是我制作的 iOS 或 Android 应用程序中的文本?

Android - 需要一个数字翻转动画

javascript - 将物体设置成 Angular table

html - 在 iframe 顶部重叠 div

javascript - 如何根据匹配的 classList 从元素中删除类

android - android-导出logcat事件的方法