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