Skip to reading
Mobile Game Setup & Testing

Get the game onto the phone

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 PDF page

ANDROID / INSTALL AND DEBUG

01. On the Android device, enable Developer options, then USB debugging. Use a data-capable USB cable, unlock the device, and accept the computer’s debugging authorization. On Windows a device-specific USB driver may be necessary. Open a terminal in the SDK’s platform-tools folder, or put that folder on your command path.

Code example
adb devices -l
Code example
adb -s SERIAL install -r "/full/path/to/game.apk"

Replace SERIAL with the identifier on the first line of output for your device. On Windows use your actual drive path. In Windows PowerShell, use .\adb.exe when running from platform-tools if adb is not on PATH. “device” means ready; “unauthorized” means check the phone; an empty list points first to the cable, USB settings or driver.

02. Launch the game from the app drawer. Unplug USB, close and reopen the app, and play the first room again. This catches missing local assets or an accidental dependency on the computer. Use one physical Android tablet as well if you intend to advertise tablet support.

03. For a quick second install, use the same app ID, matching signing identity and a compatible version code. The -r option requests an update that preserves app data. For a clean-install test, use a spare test device or a separate development app ID so you can keep the save used for update testing.

When installation itself fails#

Source table from Get the game onto the phone, page 12
ADB reportsNext check
UPDATE_INCOMPATIBLEAn installed copy usually has a different signing key. Use the matching key or a separate test ID. Removing the old app can erase its saves.
NO_MATCHING_ABISCompare the phone’s supported CPU architectures with the APK and every required native library.
VERSION_DOWNGRADEIncrease the Android version code above the currently installed build, then export again.
Page 12 of 22Permalink
Go to page