Skip to content

Android

JimmySnails edited this page May 18, 2020 · 9 revisions

Android Build Instructions

Preparing your buildenvironment on Linux

Download Android Build tools:

Besides the android sdk / ndk

wget https://dl.google.com/android/d/commandlinetools-linux-6200805_latest.zip
wget https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip

go to your android sdk folder and enter the dir: android-sdk-linux/tools/bin

./sdkmanager --install "cmake;3.10.2.4988404"
./sdkmanager --install "build-tools;26.0.0"
./sdkmanager --install "platforms;android-26"
yes | ./sdkmanager --licenses

In case the sdkmanager is giving you troubles, add the parameter --sdk_root=${ANDROID_HOME} to each call

Download Cytopia dependencies

./get_dependencies.sh

Set env variables

export ANDROID_NDK_HOME=/path/to/android-ndk-r21
export ANDROID_HOME=/path/to/android-sdk-linux/

Building Cytopia

To build cytopia, simply run the gradlew script.

cd platforms/android
./gradlew assemble

The resulting apk can be found at:

Release: platforms/android/android-sdk-linux/tools/bin/release/Cytopia-release-unsigned.apk

Debug: platforms/android/android-sdk-linux/tools/bin/debug/Cytopia-debug.apk