I installed the cord on linux mint 17.1 xfce, jdk, android and npm in order, and I can create a new cordova application and add the android platform to it:
Cordoba create ... Cordoba platform add android ..
but when I want to build an android, I get an error: Cordoba build ...
Running command: /home/nasser/Desktop/app/app01/platforms/android/cordova/build ANDROID_HOME=/home/nasser/android/sdk JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386 Running: /home/nasser/Desktop/app/app01/platforms/android/gradlew cdvBuildDebug -b /home/nasser/Desktop/app/app01/platforms/android/build.gradle -Dorg.gradle.daemon=true FAILURE: Build failed with an exception. * Where: Script '/home/nasser/Desktop/app/app01/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: 20.222 secs /home/nasser/Desktop/app/app01/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /home/nasser/Desktop/app/app01/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/nasser/Desktop/app/app01/platforms/android/build.gradle,-Dorg.gradle.daemon=true ERROR building one of the platforms: Error: /home/nasser/Desktop/app/app01/platforms/android/cordova/build: Command failed with exit code 8 You may not have the required environment or OS to build this project Error: /home/nasser/Desktop/app/app01/platforms/android/cordova/build: Command failed with exit code 8 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131: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)
What can I do?
android cordova
Nasser mansouri
source share