Install Godot and configure projects for Android

This guide will cover the following steps:

  • Selecting a version and release of Godot.
  • Downloading and installing Godot.
  • Configuring Godot for Android development.
  • Configuring your system for C# development and export (Mono release of Godot only).

Select a version

Use the latest stable release of Godot when possible. For Android development, use version 3.3 or higher.

Download and run Godot

Visit the Godot download page to download the game engine for your preferred environment.

Godot offers two releases on its download page: standard and Mono. Either may be used to develop for Android. The Mono release is required for C# development.

Godot is distributed as a standalone application. It does not require an installation process; after extracting the download archive, you can run it as-is.

Configure Android support

Configure the Android Studio SDK settings

  1. If you haven’t already done so, download and install the latest stable release of Android Studio.
  2. Launch Android Studio.
  3. In the Welcome to Android Studio window, open the Configure dropdown menu and select SDK Manager.
  4. At the top of the window, make a note of the Android SDK Location on your computer. You will need to specify that location in Godot editor.
  5. In the SDK Platforms tab, find the list entry for Android 11.0 R. Check the item if it is unchecked.
  6. In the SDK Tools tab, find the list items for NDK (Side by side), Android SDK Command-line Tools, and CMake. Check them if they are unchecked.
  7. If any list items have their status set to Update Available, enable their check box to update to the latest version.
  8. Click the OK button. Confirm the download and accept the license agreements to complete the installation.

Create a debug keystore

Android apps must be digitally signed to run on a device. For local testing, a debug keystore file may be used to sign apps. Android Studio will automatically create a default debug keystore. If you have previously built apps using a debug configuration with Android Studio, a debug.keystore file should be located in the following directory:

  • Microsoft Windows: C:\Users\$username\.android\debug.keystore
  • Linux/macOS: ~\.android\debug.keystore

If the debug.keystore file does not exist, create one by performing the following steps:

  1. Launch Android Studio.
  2. In the Welcome to Android Studio window, select the Import an Android Code Sample option.
  3. Select the Ndk -> Hello GL2 sample from the list and click the Next button.
  4. Choose a location for the project and click the Finish button.
  5. Wait for the project to load and sync with Gradle, then select Build -> Make Project from the Android Studio menu bar.
  6. Wait for the build to finish, then verify a debug.keystore file was created in the appropriate directory.

Set the Android SDK and debug keystore location in Godot editor

  1. Launch the Godot editor.
  2. Create or open a project.
  3. Select Editor -> Editor Settings… from the Editor menu bar.
  4. In the Editor Settings window, select the Export -> Android item in the left panel.
  5. In the right panel, go to the text box for Android Sdk Path and enter the path to the Android SDK.
  6. In the text box for Debug Keystore enter the path to the debug.keystore file.
Android SDK path setting in Godot editor settings
Figure 1: The Android Sdk Path field in Editor Settings

Set up Mono

Install MSBuild

The Mono release of Godot requires MSBuild to build and export projects that use C#. To install MSBuild:

Linux and macOS

Microsoft Windows

Configure a C# editor

Godot has very limited support for editing C# code. Using an external editor for C# files is strongly recommended. Godot supports the following C# editors:

  • Microsoft Visual Studio/Visual Studio for Mac
  • Microsoft Visual Studio Code
  • JetBrains Rider
  • MonoDevelop

To configure an external C# editor, open a project in the Godot editor and perform the following steps:

  1. Select Editor -> Editor Settings… from the editor menu bar.
  2. In the Editor Settings window, select the Mono -> Editor item in the left panel.
  3. Choose the desired editor from the External Editor dropdown menu.
External editor setting in Godot editor settings
Figure 2: The External Editor field in Editor Settings

C# editor plugins for Godot