Just installed 3.2.0-rc1 as announced on cordova.apache.org.
$ cordova -v
When trying to update the platforms it failed, so I tried removing each platform and adding again. Works for iOS. When running `sudo cordova platform add android -d` I get:
Running bin/create for platform "android" with command: ""/Users/djpfahler/.cordova/lib/android/cordova/3.2.0-rc1/bin/create" "/Users/djpfahler/localhost/LeadTracker/cordova/platforms/android" "com.dockmaster.leadtracker" "LeadTracker"" (output to follow)
Error: An error occured during creation of android sub-project.
[Error: ERROR : Make sure JAVA_HOME is set, as well as paths to your JDK and JRE for java.]
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)
To verify I have JAVA_HOME set correctly:
$ echo $JAVA_HOME
Ant is in my path:
$ ant -v
Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Trying the default build file: build.xml
Buildfile: build.xml does not exist!
ADT is installed.
What happens here?