Android

= Building Android from master branch =

This is a simple guide on how to build Minetest for Android on Ubuntu on a 64 bit system. Building on 32 bit systems should work too when the URLs and paths are replaced accordingly. This guide covers all preparation needed. Once everything is set up, Minetest only needs  to compile.

Required packages
Git, Make, and other basic tools are neccessary:  Gradle is required as well. If your distribution gives you gradle 2.10 or later (like Ubuntu 16.04 does), you may simply do: If your distribution ships with an older version of gradle, you may grab a recent version of gradle via a PPA:

As your architecture is 64 bit, you need additional packages. On newer systems do: (Ubuntu 16.04-ish): On older systems do:

Getting the SDK and NDK
Both SDK and NDK are needed:

The last line will ask for your confirmation multiple times.

Obtaining and building Minetest
Clone Minetest, and build it:

The make file will ask you for the paths to your SDK and NDK. It will then download and build all required libraries. Finally it will build Minetest and the Java sources and pack everything into a debug-signed APK.

Package
This apk file cannot be installed and needs two steps: sign & zipalign.

Deploy
You can now install the release on your phone. It's located inside the current folder.

Publish on the Play Store
The Google Play Store app uses public beta for testers before making it available for many users.

You should first publish the beta release here.

When the test is complete and valid, click on Create the production version and publish it.