Skip to reading
Mobile Game Setup & Testing

Compile a test APK in PCA

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

ANDROID / FIRST BUILD

PCA’s Build Game list. Android (APK) makes the installable test package. Editable Godot source for mobile gives you the project for later customization.

01. On the computer doing the build, install the full Godot 4.7.2 editor for this PCA release. In Godot choose Editor Manage Export Templates and install the matching version. Install OpenJDK 17 and the Android SDK through Android Studio. Open SDK Manager and install Platform-Tools, Build-Tools, SDK Platform and Command-line Tools. Use the Godot version guide on page 20 for the exact package list.

02. Open Godot’s Editor Settings Export Android. Set Java SDK Path to the JDK directory and Android SDK Path to the directory containing platform-tools. Configure a debug keystore if the preset requests one. Run these steps under the same OS account that will run PCA or its worker.

03. In PCA choose Build Game Android (APK) Build Tools. For local builds, turn Remote Build off and select the Godot editor executable. Set the bundle identifier. Leave Release build off. Confirm, click Choose Folder and Build Game and choose a writable output parent.

04. Look for build/android/game.apk inside the generated project folder, or extract the archive returned by your worker. This preset creates an ARM64 APK. It fits typical modern Android phones and tablets; an x86-only emulator needs a separately configured build with matching native libraries.

If the job stops, open import.log or export.log in the generated project. The first missing prerequisite is usually more useful than the last line saying the build failed. Page 17 walks through an actual failed export.

Page 11 of 22Permalink
Go to page