android - Windows 8.1 64 位上的 PhoneGap 使用 Platform add android 命令出现错误

标签 android node.js cordova windows-8.1

我一直在尝试设置 Android、Phonegap 和 eclipse。我成功安装了64位版本。我正在使用最新版本的 Node.JS V0.10.21 我正在尝试设置我的第一个项目。执行此行时出错。

cordova platform add android

错误如下

[command failed to execute: ant jar]

调试如下

Error: An error occured during creation of android sub-project. Creating Cordova project for the Android platform:

at C:\Users\Joe\AppData\Roaming\npm\node_modules\cordova\src\platform.js:246:30 at ChildProcess.exithandler (child_process.js:641:7) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:735:16) at Process.ChildProcess._handle.onexit (child_process.js:802:5)

最佳答案

你有吗installed the Android SDK它在您的 PATH 中可用吗?

关于android - Windows 8.1 64 位上的 PhoneGap 使用 Platform add android 命令出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19710328/

相关文章:

javascript - Electron webContents执行JavaScript : Cannot execute script on second on loadURL

android - 实时位置广播

android - 如何在不更改太多代码的情况下使相对布局应用程序具有响应性?

javascript - 具有对象属性数组的 Mongodb 文档 : how match property of this array?

android - 如何在 phonegap/Cordova 中合并或覆盖 Android 的 build.xml

javascript - 来自 Cordova 相机的 Javascript 文件对象的 CreateObjectUrl

javascript - AngularJS $http.post 与正文

android - 非法状态异常 "System services not available to Activities before onCreate()"

android - 按下列表项的默认可绘制对象是什么

node.js - Chrome 无法连接到 http ://localhost:8080 but http://127. 0.0.1:8080 有效