Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cadova build failed

SKPJan 10 2020 — edited Jan 10 2020

Checking Java JDK and Android SDK versions

ANDROID_SDK_ROOT=C:\Users\Usernamet\AppData\Local\Android\Sdk (recommended setting)

ANDROID_HOME=C:\Users\Username\AppData\Local\Android\sdk (DEPRECATED)

> Task :wrapper

BUILD SUCCESSFUL in 10s

1 actionable task: 1 executed

Subproject Path: CordovaLib

Subproject Path: app

Cordova compile finished.

Cordova compile finished.

Error: Error: Command failed: cordova compile android --debug --emulator

FAILURE: Build failed with an exception.

* Where:

Build file 'C:\Users\Usernamet\MySampleApp\hybrid\platforms\android\app\build.gradle' line: 20

* What went wrong:

A problem occurred evaluating project ':app'.

> Could not initialize class com.android.build.gradle.internal.crash.PluginCrashReporter

* 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 4s

C:\Users\Username\MySampleApp\hybrid\platforms\android\gradlew: Command failed with exit code 1 Error output:

FAILURE: Build failed with an exception.

* Where:

Build file 'C:\Users\Subrat\MySampleApp\hybrid\platforms\android\app\build.gradle' line: 20

* What went wrong:

A problem occurred evaluating project ':app'.

> Could not initialize class com.android.build.gradle.internal.crash.PluginCrashReporter

* 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 4s

Comments
Post Details
Added on Jan 10 2020
1 comment
593 views