/geodroid

Android library for building spatial apps

Primary LanguageMakefileApache License 2.0Apache-2.0

GeoDroid

An Android library for building spatial applications.

Setting up the Android SDK

Building the library requires the Android SDK.

After installing the SDK some additional packages must be installed through the Android SDK Manager. Run the android command to start the SDK manager and install the following packages.

  • Android SDK Tools
  • Android SDK SDK Platform-tools
  • Android SDK Build-tools

And finally install the appropriate API package. Currently GeoDroid is built against "Android 4.0.3 (API 15)".

Building

Building the library from sources requires Apache Maven.

Once the Android SDK is set up and Maven is installed run the following command in the root of the project.

android update project -p .

And finally run Maven to build the library.

mvn install

Note: On OSX an error may occur during Maven execution that looks like:

[ERROR] com.sun.tools.javac.Main is not on the classpath.
[ERROR] Perhaps JAVA_HOME does not point to the JDK.

In that case try executing Maven with the tools.jar profile.

mvn -P tools.jar install