A problem occurred evaluating project ':app'

Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=C:\Users\Koru\AppData\Local\Android\Sdk (recommended setting)
ANDROID_HOME=C:\Program Files\Android\Android Studio\bin (DEPRECATED)
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

BUILD SUCCESSFUL in 5s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\jaypal\Studay\ionic\myApp\platforms\android\app\build.gradle’ line: 20

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

java.lang.ExceptionInInitializerError (no error message)

  • 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 1m 1s
C:\jaypal\Studay\ionic\myApp\platforms\android\gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • Where:
    Build file ‘Studay\ionic\myApp\platforms\android\app\build.gradle’ line: 20

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

java.lang.ExceptionInInitializerError (no error message)

  • 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 1m 1s
[ERROR] An error occurred while running subprocess cordova.

    cordova.cmd build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

I am facing this same issue.

FAILURE: Build failed with an exception.

  • Where:
    Script ‘D:\Code\UI\newui\platforms\android\CordovaLib\cordova.gradle’ line: 68

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

No installed build tools found. Install the Android build tools version 19.1.0 or higher.

  • 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

Android build tools version is 29.x.

Did you get a solution to this issue?