Ionic cordova run anroid --device

I have 2 error:
the first:
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.IllegalStateException: compileSdkVersion is not specified.

and the second:

A problem occurred evaluating root project ‘android’.

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.

My ionic info
:heavy_check_mark: Gathering environment info - done!


ionic (Ionic CLI) : 4.1.2 (/usr/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0


cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 6.4.0, browser 5.0.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.4, (and 5 other plugins)


NodeJS : v6.14.4 (/usr/bin/node)
npm : 3.10.10
OS : Linux 4.9