Topic was automatically imported from the old Question2Answer platform.
Asked By
System_Error
Hi all.
I’ve been attempting to find what caused exporting to Android to not work in 3.2-stable. So far, I’ve hit an error with compiling export templates, where Gradle says it “Could not determine java version from ‘13.0.1’”
The command I was using was ./gradlew generateGodotTemplates
The full output below;
FAILURE: Build failed with an exception.
What went wrong:
Could not determine java version from ‘13.0.1’.
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.
That will work in your current command line session. You can add it to your .bash_profile, .profile, or .zshrc (depending on your shell) to persist between command line sessions.
You can check the Java version you’re currently using with javac -version and if those are not working, Java isn’t installed correctly. That should solve your issue with Gradle as it uses the Java compiler. But I found that version 13 does not work and I had to install version 11 to get it to compile correctly.
I came across this question while searching for something different and I got this working after a lot of trouble myself, so I figured I’d leave an answer here if anyone else stumbled across this question like I did.