problem with gradle version

(Carlos1229) #1

When generating the apk of my ionic project 3.
I get the following error. please help.

ionic cordova build andoid

BUILD SUCCESSFUL in 1m 5s
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@115f6ea] 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 16s
(node:7332) 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@115f6ea] 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 16s
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 Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:557:12)
(node:7332) 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:7332) [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.

0 Likes

(John Gee) #2

Reported again as: can you help me with this gradle error? run ionic cordova build android

0 Likes

(system) closed #3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

0 Likes