Checking Java JDK and Android SDK versions
ANDROID_HOME=D:\cmdline-tools (recommended setting)
ANDROID_SDK_ROOT=undefined (DEPRECATED)
Using Android SDK: D:\cmdline-tools
Subproject Path: CordovaLib
Subproject Path: app

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'Dhammika perera'.
> Could not resolve all files for configuration ':classpath'.
   > Could not find com.android.tools.build:gradle:7.6.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.6/gradle-7.6.pom
       - https://jcenter.bintray.com/com/android/tools/build/gradle/7.6/gradle-7.6.pom
     Required by:
         project :
   > Could not find com.android.tools.build:gradle:7.6.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.6/gradle-7.6.pom
       - https://jcenter.bintray.com/com/android/tools/build/gradle/7.6/gradle-7.6.pom
     Required by:
         project :

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

C:\Users\DELL\Desktop\mobileApp\myapp>cordova build android --stacktrace
Checking Java JDK and Android SDK versions
ANDROID_HOME=D:\cmdline-tools (recommended setting)
ANDROID_SDK_ROOT=undefined (DEPRECATED)
Using Android SDK: D:\cmdline-tools
Subproject Path: CordovaLib
Subproject Path: app

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'Dhammika perera'.
> Could not resolve all files for configuration ':classpath'.
   > Could not find com.android.tools.build:gradle:7.6.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.6/gradle-7.6.pom
       - https://jcenter.bintray.com/com/android/tools/build/gradle/7.6/gradle-7.6.pom
     Required by:
         project :
   > Could not find com.android.tools.build:gradle:7.6.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.6/gradle-7.6.pom
       - https://jcenter.bintray.com/com/android/tools/build/gradle/7.6/gradle-7.6.pom
     Required by:
         project :

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3s
Command failed with exit code 1: C:\Users\DELL\Desktop\mobileApp\myapp\platforms\android\gradlew -b C:\Users\DELL\Desktop\mobileApp\myapp\platforms\android\build.gradle cdvBuildDebug