I'm running into trouble trying to export a project for Android. For some reason Godot keeps looking for Java in a location of an old JDK install from years ago which has since been deleted. I've updated my JAVA_HOME, reinstalled Java and Android Studio, double checked that the right packages are installed for Android Studio, but nothing helps. Godot refuses to acknowledge my updated JDK path.
I've already started discussing this in this thread:
I just tried again - I created a new project that contains one scene with a button and tried to build an AAB with it. I get the error
FAILURE: Build failed with an exception.
* What went wrong:
The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\Java\jdk1.8.0_151\bin\java.exe
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
Exit Code: 1
This is not what JAVA_HOME is
C:\Program Files\Eclipse Adoptium\jdk-126.96.36.199-hotspot
I'm really not sure how to fix this. I was able to export for Android about two years ago, but nothing works after my latest round of upgrades.