I updated the Ionic CLI and the Cordova Android (cordova platform update android@4.0.0).
Now when I try to run the app in android device, I am getting the following error:
Running command: /Users/saiy2k/projects/cordova/a1Mobile/hooks/after_prepare/010_add_platform_class.js /Users/saiy2k/projects/cordova/a1Mobile
add to body class: platform-android
Running command: /Users/saiy2k/projects/cordova/a1Mobile/hooks/after_prepare/020_remove_sass_from_platforms.js /Users/saiy2k/projects/cordova/a1Mobile
Running command: /Users/saiy2k/projects/cordova/a1Mobile/platforms/android/cordova/run
ANDROID_HOME=/Users/saiy2k/projects/tools/sdk
JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
WARNING : No target specified, deploying to device 'HE4TFM6PGUWWPRQG'.
Running: /Users/saiy2k/projects/cordova/a1Mobile/platforms/android/gradlew cdvBuildDebug -b /Users/saiy2k/projects/cordova/a1Mobile/platforms/android/build.gradle -PcdvBuildArch=arm -Dorg.gradle.daemon=true
FAILURE: Build failed with an exception.
* Where:
Script '/Users/saiy2k/projects/cordova/a1Mobile/platforms/android/CordovaLib/cordova.gradle' line: 64
* What went wrong:
A problem occurred evaluating root project 'android'.
> No installed build tools found. Please install the Android build tools version 19.1.0 or higher.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.261 secs
/Users/saiy2k/projects/cordova/a1Mobile/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/saiy2k/projects/cordova/a1Mobile/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/saiy2k/projects/cordova/a1Mobile/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true
ERROR running one or more of the platforms: Error: /Users/saiy2k/projects/cordova/a1Mobile/platforms/android/cordova/run: Command failed with exit code 1
You may not have the required environment or OS to run this project
What could be the problem. Please help?
Update:
Reinstalled node/npm, cordova/ionic, but still same issue.
ionic info:
Cordova CLI: 5.1.1
Ionic Version: 1.0.0
Ionic CLI Version: 1.5.5
Ionic App Lib Version: 0.2.2
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X Yosemite
Node Version: v0.12.4
Xcode version: Xcode 6.1.1 Build version 6A2008a
Android Build Tools are not installed, or you don’t have have the right version installed. In this case version 19. Run “android” from your command-line to open the SDK manager, and add this version.
I have same problem and I tried to install many versions but same problem ;'( @saiy2k@tomkuipers Please can you give me direct link to download appropriate version ?
I had same problem. I uninstalled android studio, SDK tools and cordova and installed latest updates
now I can use phonegap build android or cordova build android or ionic build android BUT with this error