I’m new to Cordova, so some things are not clear to me. I tried to generate an APK from a project, but I’m getting an error. I’ve done some research, but I couldn’t find a solution. The error is as follows:
F:\VisioPRO>cordova build -- --webpackConfig webpack.config.js
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=C:\Users\GeFor\AppData\Local\Android\Sdk\ (recommended setting)
ANDROID_HOME=undefined (DEPRECATED)
Using Android SDK: C:\Users\GeFor\AppData\Local\Android\Sdk
Subproject Path: CordovaLib
Subproject Path: app
FAILURE: Build failed with an exception.
* Where:
Build file 'F:\VisioPRO\platforms\android\app\build.gradle' line: 28
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not resolve all artifacts for configuration 'classpath'.
> Could not find com.g00fy2:versioncompare:1.3.4.
Searched in the following locations:
- https://jcenter.bintray.com/com/g00fy2/versioncompare/1.3.4/versioncompare-1.3.4.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format,
you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
unspecified:unspecified:unspecified
* 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
Command failed with exit code 1: F:\VisioPRO\platforms\android\gradlew cdvBuildDebug -b F:\VisioPRO\platforms\android\build.gradle
F:\VisioPRO>gradle -version
Welcome to Gradle 8.11.1!
Here are the highlights of this release:
- Parallel load and store for Configuration Cache
- Java compilation errors at the end of the build output
- Consolidated report for warnings and deprecations
For more details see https://docs.gradle.org/8.11.1/release-notes.html
------------------------------------------------------------
Gradle 8.11.1
------------------------------------------------------------
Build time: 2024-11-20 16:56:46 UTC
Revision: 481cb05a490e0ef9f8620f7873b83bd8a72e7c39
Kotlin: 2.0.20
Groovy: 3.0.22
Ant: Apache Ant(TM) version 1.10.14 compiled on August 16 2023
Launcher JVM: 1.8.0_431 (Oracle Corporation 25.431-b10)
Daemon JVM: C:\Program Files\Java\jdk-1.8 (no JDK specified, using current Java home)
OS: Windows 10 10.0 amd64
Could someone please help me by simply pointing out what I should look into? Thank you very much!