npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

problem with gradle version

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.

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

2: Task failed with an exception.

compileSdkVersion is not specified.

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.

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

2: Task failed with an exception.

compileSdkVersion is not specified.

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.


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