0T0K0-Tensh1 opened a new issue, #1554:
URL: https://github.com/apache/cordova-android/issues/1554
<!------------^ Click "Preview" for a nicer view! -->
hi, total noob. this is my first question on a github ever in >10 years.
im getting this error that chat gpt seems to think is associated with either
android version 61 or jdk-17.0.2
its not clear if
`cordova platform list`
`Installed platforms:
android 10.1.2`
supports versions over JDK 10 or really what those are despite 3 workdays
worth of chatGPT and googling.
i have downloaded JDK 8 and 19 and 11 but im not quite sure if 8 comes
before 1.8 or after it because some times its called JDK18 and sometimes 1.8 so
its quite confusing. currently i am using JDK17 as mentioned, but chatGPT seems
to think i should dual install it with version 11. I think it's hallucinating,
but I can't make sense of what this post is trying to say RE java versions
either
https://stackoverflow.com/questions/40628240/cordova-requirements-check-failed-for-jdk-1-8-or-greater
that said, I am 75% sure its not a java issue, but a gradle issue due to the
error message i am getting.
Can anyone provide some context to this?
OS: windows 10
fresh android studio install
working on non OS drive
`>cordova -v
11.1.0`
```cordova run
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=\SDK (recommended setting)
ANDROID_HOME=undefined (DEPRECATED)
Using Android SDK: \SDK
Subproject Path: CordovaLib
Subproject Path: app
FAILURE: Build failed with an exception.
* Where:
Settings file '\Cordova\platforms\android\settings.gradle'
* What went wrong:
Could not compile settings file '\Cordova\platforms\android\settings.gradle'.
> startup failed:
General error during conversion: Unsupported class file major version 61```
followed by
```
1 error
* 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.1.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 926ms```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]