Ionic build android --prod --release

WHEN RUN ionic build android --prod --release SHOW THIS ERROR :

Starting a Gradle Daemon, 2 busy and 1 incompatible Daemons 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_9fgu75x5ivu3hc2sbdvsgjocx.run(C:\Users\Adel\Desktop\arayeshgah\platforms\android\build.gradle:140)

Observed package id ‘build-tools;23.0.0-rc2’ in inconsistent location ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\23.0.0-preview’ (Expected ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\23.0.0-rc2’)

Observed package id ‘build-tools;26.0.0-rc1’ in inconsistent location ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\26.0.0-preview’ (Expected ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\26.0.0-rc1’)

Observed package id ‘build-tools;23.0.0-rc2’ in inconsistent location ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\23.0.0-preview’ (Expected ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\23.0.0-rc2’)

Observed package id ‘build-tools;26.0.0-rc1’ in inconsistent location ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\26.0.0-preview’ (Expected ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\26.0.0-rc1’)

The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.

Incremental java compilation is an incubating feature.

The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.

Observed package id ‘build-tools;23.0.0-rc2’ in inconsistent location ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\23.0.0-preview’ (Expected ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\23.0.0-rc2’)

Observed package id ‘build-tools;26.0.0-rc1’ in inconsistent location ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\26.0.0-preview’ (Expected ‘G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\build-tools\26.0.0-rc1’)

Checking the license for package Google Repository in G:\Android.SDK.Tools.Bundle.v24.3.2\sdk\licenses

Warning: License for package Google Repository not accepted.

BUILD FAILED

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:
[Google Repository].
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.

Total time: 4 mins 7.746 secs

(node:4200) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: 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:
[Google Repository].
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.

(node:4200) [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.

Already tried what the error said?