Yes, i have problem too. I want to emulate android, and i have all things installed.
When i was checking all thing i see this:
$ ant -v
Apache Ant(TM) version 1.9.4 compiled on April 29 2014
Trying the default build file: build.xml
Buildfile: build.xml does not exist!
Build failed``
And my project, didn’t emulate:
$ ionic emulate android
Running command: /Users/hermes/www/todo/hooks/after_prepare/010_add_platform_class.js /Users/hermes/www/todo
add to body class: platform-android
Running command: /Users/hermes/www/todo/hooks/after_prepare/020_remove_sass_from_platforms.js /Users/hermes/www/todo
Running command: /Users/hermes/www/todo/platforms/android/cordova/run --emulator
Buildfile: /Users/hermes/www/todo/platforms/android/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.0.2
[checkenv] Installed at /Users/hermes/Library/Android/sdk
-setup:
[echo] Project Name: CordovaApp
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 21.1.2
[echo] Resolving Build Target for CordovaApp...
**BUILD FAILED
/Users/hermes/Library/Android/sdk/tools/ant/build.xml:542: Unable to resolve project target 'android-19'**
Total time: 1 second
/Users/hermes/www/todo/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: ant with args: debug,- f,/Users/hermes/www/todo/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
Error: /Users/hermes/www/todo/platforms/android/cordova/run: Command failed with exit code 1
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1008:16)
at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
I have the API 19, see the image bellow:
Any idea how can i solve this?