# Gradle Error when Compiling APK

**URL:** <https://discuss.gradle.org/t/gradle-error-when-compiling-apk/50754>\
**Category:** Help/Discuss\
**Created:** [April 3, 2025, 10:36pm UTC](https://discuss.gradle.org/t/gradle-error-when-compiling-apk/50754 "2025-04-03T22:36:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![imothep85](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/imothep85/32/11550_2.png) [@imothep85](https://discuss.gradle.org/u/imothep85)\
**Post date:** [April 3, 2025, 10:36pm UTC](https://discuss.gradle.org/t/gradle-error-when-compiling-apk/50754/1 "2025-04-03T22:36:56Z")

</div>

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:

```plaintext
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\

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [April 3, 2025, 11:28pm UTC](https://discuss.gradle.org/t/gradle-error-when-compiling-apk/50754/2 "2025-04-03T23:28:57Z")

</div>

The error tells you, that you tried to run a Gradle 7.5 build using Java 21 which is not supported: [Compatibility Matrix](https://docs.gradle.org/current/userguide/compatibility.html)

---

<div class="post-metadata">

**Author:** ![imothep85](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/imothep85/32/11550_2.png) [@imothep85](https://discuss.gradle.org/u/imothep85)\
**Post date:** [April 3, 2025, 11:42pm UTC](https://discuss.gradle.org/t/gradle-error-when-compiling-apk/50754/3 "2025-04-03T23:42:07Z")

</div>

How can i solve that?

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [April 3, 2025, 11:46pm UTC](https://discuss.gradle.org/t/gradle-error-when-compiling-apk/50754/4 "2025-04-03T23:46:41Z")

</div>

Well, …, don’t do that?

---

<div class="post-metadata">

**Author:** ![imothep85](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/imothep85/32/11550_2.png) [@imothep85](https://discuss.gradle.org/u/imothep85)\
**Post date:** [April 3, 2025, 11:56pm UTC](https://discuss.gradle.org/t/gradle-error-when-compiling-apk/50754/5 "2025-04-03T23:56:11Z")

</div>

> [@Vampire](#):
>
> Gradle 7.5

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..

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [April 4, 2025, 12:08am UTC](https://discuss.gradle.org/t/gradle-error-when-compiling-apk/50754/6 "2025-04-04T00:08:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![imothep85](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/imothep85/32/11550_2.png) [@imothep85](https://discuss.gradle.org/u/imothep85)\
**Post date:** [April 4, 2025, 12:11am UTC](https://discuss.gradle.org/t/gradle-error-when-compiling-apk/50754/7 "2025-04-04T00:11:12Z")

</div>

well i ask because the error told me \* Get more help at [https://help.gradle.org](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.

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [April 4, 2025, 12:16am UTC](https://discuss.gradle.org/t/gradle-error-when-compiling-apk/50754/8 "2025-04-04T00:16:24Z")

</div>

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. 🙂
