npm Community Forum (Archive)

The npm community forum has been discontinued.

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

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

ANDROID_HOME=/Users/Administrador/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
studio
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon (subsequent builds will be faster)
[17:15:41] lint finished in 19.92 s

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

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

2: Task failed with an exception.

compileSdkVersion is not specified.

BUILD FAILED in 38s
(node:9722) 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@5041a00b] on task ‘:app:cdvPrintProps’ of type org.gradle.api.DefaultTask.

2: Task failed with an exception.

compileSdkVersion is not specified.

BUILD FAILED in 38s
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:9722) 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:9722) [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.


I don’t know if you will get much help here as I don’t see npm mentioned in your commands or logs and this is the npm forum.

The Cordova issue reporting is listed here: https://cordova.apache.org/contribute/issues.html

And the Gradle error suggests: https://help.gradle.org