我正在使用 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/