Ionic app build

Hi,
I’m not able to build ionic app. This is the build output

The Ionic CLI has an update available (3.17.0 => 3.19.0)!

[WARN] No write permissions for global node_modules–automatic CLI updates are

   disabled.
   To fix, see https://docs.npmjs.com/getting-started/fixing-npm-permissions
   
   Or, install the CLI update manually:
   
   npm i -g ionic@latest

Running app-scripts build: --platform android --target cordova
[10:45:47] build dev started …
[10:45:48] clean started …
[10:45:48] clean finished in 33 ms
[10:45:48] copy started …
[10:45:48] deeplinks started …
[10:45:48] deeplinks finished in 83 ms
[10:45:48] transpile started …
[10:45:55] transpile finished in 6.48 s
[10:45:55] preprocess started …
[10:45:55] preprocess finished in 20 ms
[10:45:55] webpack started …
[10:45:55] copy finished in 7.53 s
[10:46:08] webpack finished in 13.54 s
[10:46:08] sass started …
[10:46:11] sass finished in 2.51 s
[10:46:11] postprocess started …
[10:46:11] postprocess finished in 45 ms
[10:46:11] lint started …
[10:46:11] build dev finished in 23.47 s

cordova build android
ANDROID_HOME=/home/web/android-sdk-macosx
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Subproject Path: CordovaLib
[10:46:31] lint finished in 20.23 s
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_ag9s4e04rhf6o7vm6toy3adbw.run(/home/web/Public/ionic/meatStoreApp/platforms/android/build.gradle:137)
File /home/web/.android/repositories.cfg could not be loaded.

Checking the license for package Android SDK Build-Tools 27.0.1 in /home/web/android-sdk-macosx/licenses
Warning: License for package Android SDK Build-Tools 27.0.1 not accepted.
Checking the license for package Android SDK Platform 25 in /home/web/android-sdk-macosx/licenses
Warning: License for package Android SDK Platform 25 not accepted.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 25, Android SDK Build-Tools 27.0.1].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to Exporting licenses - Android Studio Project Site

  • 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: 30.721 secs
Error: /home/web/Public/ionic/meatStoreApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 25, Android SDK Build-Tools 27.0.1].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to Exporting licenses - Android Studio Project Site

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

[ERROR] An error occurred while running cordova build android (exit code 1).

Not very hard to understand this error message, or is it?