App Build Error


#1

Hi all
during buildingmy app the below errors stopped the building progress

> C:\Users\Mohamed Khedr\Desktop\app>cordova build android --save
> Android Studio project detected
> ANDROID_HOME=D:\android app\tools
> JAVA_HOME=C:\Program Files\java\jdk1.8.0_121
> studio
> Subproject Path: CordovaLib
> Subproject Path: app
**> **
> FAILURE: Build failed with an exception.
**> **
> * Where:
> Script ‘C:\Users\Mohamed Khedr\Desktop\app\platforms\android\CordovaLib\cordova.gradle’ line: 68
**> **
> * What went wrong:
> A problem occurred evaluating project ‘:CordovaLib’.
> > No installed build tools found. 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.
**> **
> * Get more help at https://help.gradle.org
**> **
> BUILD FAILED in 1s
> (node:9720) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
> FAILURE: Build failed with an exception.
**> **
> * Where:
> Script ‘C:\Users\Mohamed Khedr\Desktop\app\platforms\android\CordovaLib\cordova.gradle’ line: 68
**> **
> * What went wrong:
> A problem occurred evaluating project ‘:CordovaLib’.
> > No installed build tools found. 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.
**> **
> * Get more help at https://help.gradle.org
**> **
> BUILD FAILED in 1s
> at ChildProcess.whenDone (C:\Users\Mohamed Khedr\Desktop\app\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
> at emitTwo (events.js:126:13)
> at ChildProcess.emit (events.js:214:7)
> at maybeClose (internal/child_process.js:925:16)
> at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
> (node:9720) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
> (node:9720) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Any Idea ???


#2

Hello,
it seems that build tools for api level 19 not installed.
Are you sure, that you want build to api level 19?

If yes, build tools are a part of android sdk. If you have android studio installed, then take a look to sdk manager and check installed sdks.

Best regards, anna-liebt