简体   繁体   中英

PhoneGap on windows 8.1 64 bit error with Platform add android command

I have been trying to setup Android, Phonegap,and eclipse. I installed the 64 bit versions successfully. I am using the latest version of Node.JS V0.10.21 I am trying to setup my first project. I get an error executing this line.

cordova platform add android

The error is below

[command failed to execute: ant jar]

The debug is as follows

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)

您是否已安装Android SDK ,并且可以在PATH

似乎尚未安装Apache Ant ,或者尚未定义其PATH。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM