I am attempting to run "cordova build android" through phonegap CLI with Terminal on my Mac.
First I downloaded the Android SDK.
Then I set up the project and added android.
Then I attempted "cordova build android" and received the following error:
Error: An error occurred while building the android project. Please install Android target 17 (the Android newest SDK). Make sure you have the latest Android tools installed as well. Run "android" from your command-line to install/update any missing SDKs or tools.
So I ran "android" and installed everything related to target 17.
Then I attempted "cordova build android" again and receive the following compile errors:
-compile: [javac] Compiling 3 source files to /Users/johnmacadam/Desktop/com.test.hello/platforms/android/bin/classes [javac] /Users/johnmacadam/Desktop/com.test.hello/platforms/android/src/com/ZZZ.java:20: ';' expected [javac] package com.humorthatworks.501ways; [javac] ^ [javac] /Users/johnmacadam/Desktop/com.test.hello/platforms/android/src/com/ZZZ.java:25: expected [javac] public class 501Ways extends CordovaActivity [javac] ^ [javac] /Users/johnmacadam/Desktop/com.test.hello/platforms/android/src/com/ZZZ.java:25: expected [javac] public class ZZZ extends CordovaActivity [javac] ^ [javac] /Users/johnmacadam/Desktop/com.test.hello/platforms/android/src/com/ZZZ.java:25: expected [javac] public class ZZZ extends CordovaActivity [javac] ^ [javac] /Users/johnmacadam/Desktop/com.test.hello/platforms/android/gen/com/ZZZ/BuildConfig.java:2: ';' expected [javac] package com.ZZZ; [javac] ^ [javac] /Users/johnmacadam/Desktop/com.test.hello/platforms/android/gen/com/ZZZ/R.java:8: ';' expected [javac] package com.ZZZ; [javac] ^ [javac] 6 errors
BUILD FAILED /Users/johnmacadam/Documents/adt-bundle/sdk/tools/ant/build.xml:720: The following error occurred while executing this line: /Users/johnmacadam/Documents/adt-bundle/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Any ideas/suggestions?