-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Android NDK Setup
This page explains how to compile gameplay for Android devices on Windows 7.
Before you get started you will have to download the dependencies separately:
- Download and install the Android SDK.
- Make sure
<android-sdk-path>/tools
and<android-sdk-path>/platform-tools
are added to PATH.
- Download and install the Android NDK.
- Make sure
<android-ndk-path>
is added to PATH.
- Download and install Apache Ant.
- Make sure
<ant-path>/bin
is added the PATH.
Change to the android directory for the sample you want to build: cd samples/browser/android
- Run the following command:
ant debug
Make sure developer mode is enabled and USB debugging is turned on.
- Change directory to:
cd samples/browser/android
- Install the app:
ant debug install
If ant debug install
does not work, ensure your device is being detected properly by running adb devices
. If no devices are reported, try downloading the correct USB drivers from you phone manufacturer's website. (OEM Drivers)
Use logcat
to capture the log file from the device.
adb logcat -d > logcat.txt
If your program crashed then the log file will contain the stack trace without symbols. Use ndk-stack
to make the stack trace readable.
-sym
points to the directory that contains the symbols while -dump
points to the log file.
ndk-stack -sym C:\Git\gaming\GamePlay\samples\browser\android\obj\local\armeabi -dump d:\logcat.txt