Cannot export to Android in 3.2

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rp90

Since I’ve been on 3.2, exporting anything for Android has been a struggle.

Task:compileDebugJavaWithJavac FAILED

could not find tools.jar

Godot is looking in c:\ProgramFilesx86\java\JRE folder for the JDK. I never told it to do this, and I can’t figure out how to change it.

:bust_in_silhouette: Reply From: dece441

Just copy tools.jar in the C:\Program Files\Java\jdk1.8.0_241\lib. Then paste it in C:\Program Files\Java\jre1.8.0_251\lib. And it works for me.

src : android - Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation - Stack Overflow