ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\Users\gacna\AppData\Local\Android\Sdk (DEPRECATED)
(node:5840) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Pandora\PROD\Mobile\WebApp.Cordova\node_modules\objectorarray\package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use node --trace-deprecation ...
to show where the warning was created)
Using Android SDK: C:\Users\gacna\AppData\Local\Android\Sdk
Reading build config file: C:\Pandora\PROD\Mobile\WebApp.Cordova\build.json
Subproject Path: CordovaLib
Subproject Path: app
FAILURE: Build failed with an exception.
Where: Build file 'C:\Pandora\PROD\Mobile\WebApp.Cordova\platforms\android\app\build.gradle' line: 62
What went wrong: A problem occurred evaluating project ':app'.
Could not find method compile() for arguments [com.android.support:support-v4:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
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 1s
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.1.1/userguide/command_line_interface.html#sec:command_line_warnings Command failed with exit code 1: C:\Pandora\PROD\Mobile\WebApp.Cordova\platforms\android\gradlew cdvBuildDebug -b C:\Pandora\PROD\Mobile\WebApp.Cordova\platforms\android\build.gradle
Trying to run cordova run on android studio.