错误:无法运行cordova build命令

时间:2015-02-13 12:50:44

标签: android cordova build

当我运行cordova build命令时 [错误:无法运行“android”。确保安装了最新的Android SDK,并将“android”命令(在工具/文件夹中)添加到您的  路径。] ERROR构建其中一个平台:错误:C:\ hello \ platforms \ android \ cordova \ build.bat:命令失败,退出代码为2 您可能没有必要的环境或操作系统来构建此项目。

1 个答案:

答案 0 :(得分:0)

使用Cordova文档并按照说明操作。这个主题是如此陈旧,经常发布,搜索也可以帮助你。

http://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface