can you help me with this gradle error please? run ionic cordova build android

ionic cordova build android
Running app-scripts build: --platform android --target cordova
[20:53:35] build dev started …
[20:53:35] clean started …
[20:53:35] clean finished in 6 ms
[20:53:35] copy started …
[20:53:35] deeplinks started …
[20:53:36] deeplinks finished in 195 ms
[20:53:36] transpile started …
[20:53:51] transpile finished in 15.15 s
[20:53:51] preprocess started …
[20:53:51] preprocess finished in 2 ms
[20:53:51] webpack started …
[20:53:51] copy finished in 16.39 s
[20:54:08] webpack finished in 17.39 s
[20:54:08] sass started …
[20:54:12] sass finished in 4.15 s
[20:54:12] postprocess started …
[20:54:12] postprocess finished in 52 ms
[20:54:12] lint started …
[20:54:12] build dev finished in 37.82 s

cordova build android
Android Studio project detected

ANDROID_HOME=/Users/Administrador/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
studio
[20:54:32] lint finished in 19.25 s
Starting a Gradle Daemon (subsequent builds will be faster)

Task :wrapper

BUILD SUCCESSFUL in 28s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Build file ‘/Users/Administrador/Documents/1.ionic_3_proyectos/roller/taxiappdescargado/Projects/akount-facebook/Accountkit/platforms/android/app/build.gradle’ line: 143

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

Could not find method leftShift() for arguments [build_5fdpotqewox9asuwkgpa2rogb$_run_closure6@9caf9a2] on task ‘:app:cdvPrintProps’ of type org.gradle.api.DefaultTask.

  • 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.
    ==============================================================================

2: Task failed with an exception.

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

compileSdkVersion is not specified.

  • 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 15s
(node:10678) UnhandledPromiseRejectionWarning: Error: /Users/Administrador/Documents/1.ionic_3_proyectos/roller/taxiappdescargado/Projects/akount-facebook/Accountkit/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Build file ‘/Users/Administrador/Documents/1.ionic_3_proyectos/roller/taxiappdescargado/Projects/akount-facebook/Accountkit/platforms/android/app/build.gradle’ line: 143

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

Could not find method leftShift() for arguments [build_5fdpotqewox9asuwkgpa2rogb$_run_closure6@9caf9a2] on task ‘:app:cdvPrintProps’ of type org.gradle.api.DefaultTask.

  • 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.
    ==============================================================================

2: Task failed with an exception.

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

compileSdkVersion is not specified.

  • 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 15s
at ChildProcess.whenDone (/Users/Administrador/Documents/1.ionic_3_proyectos/roller/taxiappdescargado/Projects/akount-facebook/Accountkit/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:10678) 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:10678) [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.

Hello,

The Task.leftShift method has been deprecated since Gradle 3.2 and was removed from Gradle 5.0 API.

You can either:

  1. update your build script to replace cdvPrintProps << { ... } with cdvPrintProps { doLast { ... }}
  2. downgrade your Gradle runtime to Gradle 4.10.3 which is the latest version known to have that method.