-
Notifications
You must be signed in to change notification settings - Fork 72
Get advancedmap3d to start
Nutiteq edited this page Dec 10, 2013
·
13 revisions
AdvancedMap3D sample application has number of dependencies, and it is not just plug-and-play project. You can choose whether you want to use Maven for dependency management, or just use it without Maven.
If you are new to Maven, and just want to get it running, then skipping Maven installation hurdles could be good option. AdvancedMap from start to end should work as:
- download and install Android Development Tools package (ADT) from http://developer.android.com/sdk/index.html
- select Import > GIT project, enter URI https://github.com/nutiteq/hellomap3d.git
- Select project: AdvancedMap3D, master branch.
- Add android-support-v4.jar as external library to the project. See http://stackoverflow.com/questions/18299898/the-import-android-support-cannot-be-resolved for a guide
- if asked, select the highest Android API version what you have installed. Suggested are 4.0 and newer ones
- Start the app
If you have not installed any Maven tools, then following steps should get you started:
- same as 1.-3. above
- install Maven 3.0.5 from http://maven.apache.org/download.html
- install m2e plugin to Eclipse. Select Eclipse update site, search m2e.
- Configure Maven environment variables. my .bash_profile in Mac is following:
export M2_HOME=/Users/jaak/Downloads/apache-maven-3.0.5
export PATH=$PATH:$M2_HOME/bin
export ANDROID_HOME=/Users/jaak/Downloads/adt-bundle-mac-x86_64-20131030/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools - test build from command-line. In project folder run
mvn clean install- Configure SDK path for maven. You can set it via environment, but for Eclipse safest should be to create .m2/settings.xml to your home folder as instructed in in http://stackoverflow.com/questions/19133913/maven-android-pluginno-android-sdk-path-could-be-found
p.s. Some version combinations of Maven might not build on OSX. According to https://code.google.com/p/maven-android-plugin/issues/detail?id=395 should install older Maven version 3.0.5 instead of 3.1.1