hi there
FAILURE: Build failed with an exception.
* What went wrong:
Could not open cp_settings generic class cache for settings file 'D:\ZCTURES\ZIQCO\SIDE\flutter projects\weblyflutter\android\settings.gradle' (C:\Users\KE MFONDISI\.gradle\caches\8.0\scripts\4i9fhf7rermnvbhvu3yvw878x).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65
* 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
ATTACHED FILES
Asked 3 days ago on May 29, 2025 4:48 PM Comments 5 times
kevin replied 1 day ago on May 31, 2025 6:55 AM
Hello
Please check the jdk version, the error indicate that it still take jdk version 21 or 22.
- Kevin
Ezekiel Mathokwe replied 1 day ago on May 31, 2025 5:44 AM
yes after making the version changes restarted my system many times.. alse cheked flutter doctor and environment variables
ATTACHED FILES
kevin replied 1 day ago on May 31, 2025 4:12 AM
Hello
After making the version changes did you restart the system and try ?
- Kevin
Ezekiel Mathokwe replied 2 days ago on May 30, 2025 1:15 PM
still am not solved any solution
ATTACHED FILES
kevin replied 2 days ago on May 30, 2025 4:05 AM
Hello
Please use the below mentioned version and try
Flutter version 3.29.3
jdk version 11
Android Studio Koala | 2024.1.1 Patch 2
- Kevin