This article describes how to integrate mapsforge library in your project (use the proper versions).
compile 'org.mapsforge:mapsforge-core:0.6.0'
compile 'org.mapsforge:mapsforge-map:0.6.0'
compile 'org.mapsforge:mapsforge-map-reader:0.6.0'
compile 'net.sf.kxml:kxml2:2.3.0'
compile 'org.mapsforge:mapsforge-map-android:0.6.0'
compile 'com.caverock:androidsvg:1.2.2-beta-1'
Optionally:
compile 'org.mapsforge:mapsforge-map-android-extras:0.6.0'
compile 'org.mapsforge:mapsforge-map-awt:0.6.0'
compile 'com.kitfox.svg:svg-salamander:1.0'
The dependencies for Maven are declared in a similar way. For example:
<dependency>
<groupId>org.mapsforge</groupId>
<artifactId>mapsforge-core</artifactId>
<version>0.6.0</version>
</dependency>
We support also JitPack for publishing Mapsforge. This can be used for the releases, but it's also useful for integrating SNAPSHOT builds in your application (not available in Maven central).
For example in order to include the mapsforge-core
module master-SNAPSHOT
with Gradle.
Add as repository:
maven { url "https://jitpack.io" }
And declare as dependency:
compile 'com.github.mapsforge.mapsforge:mapsforge-core:master-SNAPSHOT'
The same syntax applies for all Mapsforge modules. And with similar way you can declare the dependencies in Maven too.
You can find Mapsforge (regular and with dependencies) jars in the downloads section.
External dependencies jars can be found at their respective sites or in Maven central repository.