Exporting a Godot Game for Android

Updated on

DISCLAIMER: Expressed views on this blog are my own.

If you've tried to export a Godot game for Android target, you most likely ran into errors when you checked Gradle box like "Unable to locate a Java Runtime" or whatever. Annoying since there is no logs of the commands run nor environment variables.

Follow instructions here: https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_android.html Come back when you reached the error.

I use Mac OS and opening Godot from Applications folder will not contain a JAVA_HOME variable.

Open a terminal and just open -a "Godot" or whatever the application is named on your Mac. Export again and it works.

You just read "Exporting a Godot Game for Android". Please share if you liked it!
You can read more recent posts here.