Android Gradle plugin requires Java 17 to run. You are currently using Java 11.

Build file 'D:\Unity\Projects2\<Game>\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':launcher'.
> Failed to apply plugin 'com.android.internal.application'.
   > Android Gradle plugin requires Java 17 to run. You are currently using Java 11.

Hi all

I am currently trying to build a Android game with the Unity 2023.1.3f1 and I am getting this error. The JDK setting is recommended in the Preferences, and I have edited the gradle setting to version 8 because of another error.

When I am setting the Gradle setting back to the recommended version (7.6) I am getting the following error regarding Android Bee plugin:

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\Unity\Projects2\CodeGame\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':launcher'.
> Failed to apply plugin 'com.android.internal.version-check'.
   > Minimum supported Gradle version is 8.0. Current version is 7.6. If using the gradle wrapper, try editing the distributionUrl in D:\Unity\Projects2\CodeGame\Library\Bee\Android\Prj\IL2CPP\Gradle\gradle\wrapper\gradle-wrapper.properties to gradle-8.0-all.zip

Any ideas? There is nothing to be found online about these errors.

Having a similar issue, and still haven’t found anything. Did you find a fix since then ?

Edit: Solved the issue by opening the project in Unity 2021 and by installing older versions of the Command-line Tools (v8). I don’t know how much of that is neccessary, or if it’s really what helped since I did a lot of other stuff, but to anyone needing help, try that I guess if you’re having similar issues.

Please did you resolve this issue if yes let me know how