Ionic cordova run android --verbose

ramana_sharma@ramana:~/Desktop/todo$ ionic cordova run android --verbose
ionic:lib Terminal info: { ci: false, shell: ‘/bin/bash’, tty: true, windows: false } +0ms
ionic:lib CLI global options: { _: [ ‘cordova’, ‘run’, ‘android’ ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, project: null, ‘–’: } +3ms
ionic:lib:project Project type from config: Ionic 1 (ionic1) +0ms
ionic:lib:project Project details: { configPath: ‘/home/ramana_sharma/Desktop/todo/ionic.config.json’, errors: , context: ‘app’, type: ‘ionic1’ } +0ms
ionic Context: { binPath: ‘/usr/lib/node_modules/ionic/bin/ionic’, libPath: ‘/usr/lib/node_modules/ionic’, execPath: ‘/home/ramana_sharma/Desktop/todo’, version: ‘5.2.3’ } +0ms
ionic:lib:integrations:cordova:config Loading Cordova Config (config.xml: ‘/home/ramana_sharma/Desktop/todo/config.xml’, package.json: ‘/home/ramana_sharma/Desktop/todo/package.json’) +0ms
ionic:commands:run Native platform devices: +0ms
ionic:lib:integrations:cordova:config Loading Cordova Config (config.xml: ‘/home/ramana_sharma/Desktop/todo/config.xml’, package.json: ‘/home/ramana_sharma/Desktop/todo/package.json’) +156ms
ionic:lib:telemetry Sending telemetry for command: ‘ionic cordova run’ [ ‘android’, ‘–verbose’, ‘–interactive’, ‘–color’ ] +0ms
ionic:lib:build build options: { ‘–’: ,
ionic:lib:build engine: ‘cordova’,
ionic:lib:build platform: ‘android’,
ionic:lib:build project: undefined,
ionic:lib:build verbose: false,
ionic:lib:build type: ‘ionic1’ } +0ms
ionic:lib:hooks Looking for ionic:build:before npm script. +0ms
ionic:lib:build Looking for ionic:build npm script. +2ms

ionic-v1 build
ionic:v1-toolkit:lib:gulp Using gulpfile: /home/ramana_sharma/Desktop/todo/gulpfile.js +0ms
ionic:v1-toolkit:lib:gulp Using gulp: /home/ramana_sharma/Desktop/todo/node_modules/gulp/index.js +2ms
ionic:v1-toolkit:lib:gulp Loaded gulp tasks: { default: { fn: [Function], dep: [ ‘sass’ ], name: ‘default’ }, sass: { fn: [Function], dep: , name: ‘sass’ }, watch: { fn: [Function], dep: [ ‘sass’ ], name: ‘watch’ } } +249ms
[09:47:14] Invoking sass gulp task.
ionic:lib:hooks Looking for ionic:build:after npm script. +2s
cordova build android --verbose
No scripts found for hook “before_build”.
No scripts found for hook “before_prepare”.
Checking config.xml and package.json for saved platforms that haven’t been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Checking for saved plugins that haven’t been added to the project
Checking for any plugins added to the project that have not been installed in android platform
No differences found between plugins added to project and installed in android platform. Continuing…
Generating platform-specific config.xml from defaults for android at /home/ramana_sharma/Desktop/todo/platforms/android/app/src/main/res/xml/config.xml
Merging project’s config.xml into platform-specific android config.xml
[Gradle Properties] Preparing Configuration
[Gradle Properties] Appending default configuration properties
[Gradle Properties] Appending custom configuration properties
[Gradle Properties] Updating and Saving File
Merging and updating files from [www, platforms/android/platform_www] to platforms/android/app/src/main/assets/www
copy www/css/ionic.app.css platforms/android/app/src/main/assets/www/css/ionic.app.css (updated file)
copy www/css/ionic.app.min.css platforms/android/app/src/main/assets/www/css/ionic.app.min.css (updated file)
Wrote out android application name “MyApp” to /home/ramana_sharma/Desktop/todo/platforms/android/app/src/main/res/values/strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1
Wrote out Android package name “io.ionic.starter” to /home/ramana_sharma/Desktop/todo/platforms/android/app/src/main/java/io/ionic/starter/MainActivity.java
Updating icons at platforms/android/app/src/main/res
Updating splash screens at platforms/android/app/src/main/res
Updating resource files at platforms/android
Prepared android project successfully
Executing script found in hooks directory for hook “after_prepare”: hooks/after_prepare/010_add_platform_class.js
Running command: /home/ramana_sharma/Desktop/todo/hooks/after_prepare/010_add_platform_class.js /home/ramana_sharma/Desktop/todo
Command finished with error code 0: /home/ramana_sharma/Desktop/todo/hooks/after_prepare/010_add_platform_class.js /home/ramana_sharma/Desktop/todo
No scripts found for hook “before_compile”.
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=/home/ramana_sharma/Android/Sdk/tools (DEPRECATED)
Subproject Path: CordovaLib
Subproject Path: app
Running command: /home/ramana_sharma/Desktop/todo/platforms/android/gradlew cdvBuildDebug -b /home/ramana_sharma/Desktop/todo/platforms/android/build.gradle

Configure project :app
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

FAILURE: Build failed with an exception.

  • Where:
    Script ‘/home/ramana_sharma/Desktop/todo/platforms/android/CordovaLib/cordova.gradle’ line: 68

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

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. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 0s
Command finished with error code 1: /home/ramana_sharma/Desktop/todo/platforms/android/gradlew cdvBuildDebug,-b,/home/ramana_sharma/Desktop/todo/platforms/android/build.gradle
/home/ramana_sharma/Desktop/todo/platforms/android/gradlew: Command failed with exit code 1 Error output:
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

FAILURE: Build failed with an exception.

  • Where:
    Script ‘/home/ramana_sharma/Desktop/todo/platforms/android/CordovaLib/cordova.gradle’ line: 68

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

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. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 0s
Error: /home/ramana_sharma/Desktop/todo/platforms/android/gradlew: Command failed with exit code 1 Error output:
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

FAILURE: Build failed with an exception.

  • Where:
    Script ‘/home/ramana_sharma/Desktop/todo/platforms/android/CordovaLib/cordova.gradle’ line: 68

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

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. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 0s
at ChildProcess.whenDone (/home/ramana_sharma/Desktop/todo/node_modules/cordova-common/src/superspawn.js:135:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
[ERROR] An error occurred while running subprocess cordova.

    cordova build android --verbose exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more information.

ionic:utils-process onBeforeExit handler: ‘process.exit’ received +0ms
ionic:utils-process onBeforeExit handler: running 2 functions +0ms
ionic:utils-process processExit: exiting (exit code: 1) +17ms

am getting this error when hit enter ionic cordova run andoid