Hello I am having this error since this morning. h...
# community-support
s
Hello I am having this error since this morning. here in this code i am trying to export for android. while enabling gradle build. I tried various methods to solve this but nothing working, I am using Godot 4.3 and this is the error.
editor/export/editor_export_platform.h:182 - Export: Building of Android project failed, check output for the error:
FAILURE: Build failed with an exception.
* Where:
Build file 'E:\ALL GODOT PROJECTS\Godot 4.3\chrismas project\chrimas\android\build\build.gradle' line: 3
* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application', version: '8.2.0']
> Failed to apply plugin 'com.android.internal.application'.
> Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
Your current JDK is located in C:\Program Files\OpenLogic\jdk-11.0.21.9-hotspot
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
`- changing
org.gradle.java.home
in
gradle.properties
.`
* 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>.
I went to environment variables under advance settings from system settings then tried to change the path to the lastest openjdk but the the error is still there this is my last option please help me figure this out.
BUILD FAILED in 1s
c
are you running gradle on the command line? or is there another tool running gradle? what happens if you run it on the command line? what happens if you run it in a different shell? e.g. powershell, cmd, or bash if you're already running in a shell. chances are the thing being used to execute gradle isn't respecting your environment variable for some reason