Files
MapLibreParticleLab/platform/android/INSTALL_LINUX.md
Minh Nguyễn f8f735b574 Rewrote documentation
Rewrote some copy to provide more context and link to more GL-related repos, including GL JS. Put the various SDKs in a table so we can show the various CI bot status images.

Integrated target list into the relevant documents. Rewrote large portions of iOS and OS X setup documentation to guide normal developers to more friendly places. Combined some Android documentation.

Moved SDK-specific documentation into platform/. Added a temporary readme in ios/ that points to the one in platform/ios/.
2016-01-05 08:04:16 -08:00

1.4 KiB

Developing for Android on Linux

Install a build dependencies:

apt-get install -y make git build-essential automake \
libtool make cmake pkg-config lib32stdc++6 lib32z1

Install Oracle JDK 7 (requires license agreement)

export JAVA_HOME="/dir/to/jdk1.7.0_71"

Install the Android SDK. We recommend doing this by way of Android Studio.

export ANDROID_HOME="/dir/to/android-sdk-linux"

In the Android SDK Manager also select and install "Android Support Repository" and "Android Support Library" from "Extras":

image

Setting Mapbox Access Token

The demo applications use Mapbox vector tiles, which require a Mapbox account and API access token. Obtain an access token on the Mapbox account page.

gradle will take the value of the MAPBOX_ACCESS_TOKEN environ variable and save it to "MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml where the app will read it from.

Building

Run:

make android

You can then open android in Android Studio via "Import project (Eclipse ADT, Gradle, etc.)".

Next: get your app running on a hardware Android Device or simulator