【发布时间】:2013-12-03 12:34:25
【问题描述】:
我正在尝试将现有项目从 cordova 2.1 迁移到最新的 3.1,可以通过命令行进行 installev,
我已经安装了 Android SDK,
所以:
sudo npm install -g cordova // All good
cordova create hello com.example.hello HelloWorld // All good
cordova platform add android // Then it fires:
Checking Android requirements...
[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: ]
所以我安装了 Macports 并尝试了:
sudo port install android
哪些日志:
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
---> Cleaning android
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.
知道我在这里缺少什么吗?
【问题讨论】:
-
我在 mac 中遇到了同样的问题。我可以知道您使用了哪些平台
-
我从下面得到你的。我也尝试修复
-
检查我的回答,我做得很好,它工作 100%。如果有任何疑问,请告诉我
标签: android cordova sdk command