Hi
I’m trying to build one of the default ionic projects, in particular the “tabs” one. (I’m on a mac with 10.9)
I do the following:
-
Downloaded adt-bundle-mac-x86_64-20140321.zip
-
Added the sdk/tools directory to my path variable
-
Java is installed (version 1.6.0_65)
-
npm install -g cordova ionic
cordova version (3.4.1-0.1.0)
-
ionic start Test tabs
-
cd Test
-
ionic platform add android
-
ionic build android
I then get the following error
-compile:
[javac] Compiling 5 source files to /Users/leonv/Documents/cordova/Test/platforms/android/ant-build/classes
[javac] /Users/leonv/Documents/cordova/Test/platforms/android/src/org/apache/cordova/statusbar/StatusBar.java:70: cannot find symbol
[javac] symbol : class PluginResult
[javac] location: class org.apache.cordova.statusbar.StatusBar
[javac] callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, statusBarVisible));
[javac] ^
[javac] /Users/leonv/Documents/cordova/Test/platforms/android/src/org/apache/cordova/statusbar/StatusBar.java:70: package PluginResult does not exist
[javac] callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, statusBarVisible));
[javac] ^
[javac] 2 errors
BUILD FAILED
/Users/leonv/development/adt-bundle-mac-x86_64-20140321/sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/Users/leonv/development/adt-bundle-mac-x86_64-20140321/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 3 seconds
Error code 1 for command: ant with args: debug,-f,/Users/leonv/Documents/cordova/Test/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
Error: /Users/leonv/Documents/cordova/Test/platforms/android/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/src/superspawn.js:126:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
ERROR: Unable to build app on platform android. Please see console for more info.
Int my Test/platforms/android/CordovaLib/src/org/apache/cordova directory I do see a PluginResult.java file
In my Test/platforms/android/CordovaLib/ant-build/classes/org/apache/cordova directory I do see a PluginResult.class file
Many thanks for the help