This guide is based on Android Studio Electric Eel (which ships with SDK 33) and NDK version 23.2.8568313.
You will need to install the Android Studio, Electric Eel from here: https://developer.android.com/studio
Once installed, start Android Studio with Standard Setup options.
Install the NDK by navigating to:
More Actions > SDK Manager > SDK Tools > Show Package Details, select NDK 23.2.8568313, and Apply.
Open your Windows Environment Variables and create the following two entries:
ANDROID_HOME=%LOCALAPPDATA%\Android\Sdk JAVA_HOME=C:\Program Files\Android\Android Studio\jre
Close any console windows so that new console windows pick up the new environment variables.
In order to develop orx games and application for Android you need to clone the orx repo. Following the Cloning Orx from Github and Initial Setup article first, so that you can get Orx setup and ready to be compiled. Then head back to here once done.
There are two important things provided in Orx repository:
1. The Orx library for Android (we need to compile this ourselves) 2. The Android Demo Project
The Orx library will need to be compiled for Android so that it can be used in other projects (like yours). The Android Demo will serve as a project template for your own project.
Let's do that now.
You can now move to the next step: Compiling orx and the Android demo for compiling orx, and testing if the demo project compiles and works on your device.