I'm not sure which software versions are required for building Android. Here's my environment setup:
- Node.js v18.x
- JDK 17
- Gradle 8.5
- Android SDK (API 35, Build Tools 35.0.0)
- Cordova CLI (npm install -g cordova)
It's building successfully for web but for Android I get this:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
STDOUT
FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ':app:packageDebug'.
Could not create task ':app:compileDebugJavaWithJavac'.
In order to compile Java 9+ source, please set compileSdkVersion to 30 or above
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 11s
Command failed with exit code 1: C:\vue\carpoolear\dist\default\production\platforms\android\tools\gradlew.bat cdvBuildDebug
I'm not sure which software versions are required for building Android. Here's my environment setup:
It's building successfully for web but for Android I get this: