Gradle Error when Compiling APK

I use a game maker software Fusion 2.5 and i have installed Android Fusion, when i try to compile my game to APK, for android, i ge this error all the time:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'And545D.tmp'.
> Could not open proj generic class cache for build file 'C:\Users\REDBABOON\Documents\Clickteam Fusion Temp\And545D.tmp\build.gradle' (C:\Users\REDBABOON\.gradle\caches\7.5\scripts\8hx9dombvvbdplkbpwpzyuhc8).
   > 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

BUILD FAILED in 1s

I’m stuck i can’t compile to APK anymore… I don’t have that folder \And545D.tmp\build.gradle in C:\Users\REDBABOON\Documents\Clickteam Fusion Temp\

The error tells you, that you tried to run a Gradle 7.5 build using Java 21 which is not supported: Compatibility Matrix

How can i solve that?

Well, …, don’t do that?

Well i use Fusion 2.5, when i click to export the game to APK it does all the rest, Fusion use a plugin to convert my game to APK for android and for that i had to install android studio, but i do nothing with it..

Well, if Fusion does everything for you, why are you asking in a Gradle forum?
Ask in a Fusion community, I don’t even know or care what that tool is.
The error tells that you use Gradle 7.5 and Java 21 and that is not a legal combination.
Either use a newer Gradle version that is compatible with your Java version or use an older Java version that is compatible with your Gradle version.

well i ask because the error told me * Get more help at https://help.gradle.org so that’s what i do… i try to find help…but yeah…going to try to find someone working with Fusion plugins try to get a chance to solve this.

Yeah, that’s an unlucky message the Gradle folks added there.
It comes for each and every build.
Even if you write illegal code and thus get a compiler error, this non-sense is displayed.

But well, actually you have a Gradle problem and I explained you what your problem is.
How you control your environment, especially if a tool does it for you, is not a Gradle topic though. :slight_smile: