OSMANd Android Compiling for Eclipse and Android Studio

2.5k Views Asked by At

I am trying to build the OSMAnd for Android via Eclipse and Android Studio via this official build instructions at: https://code.google.com/p/osmand/wiki/GradleCommandLineBuildEnvironment

I am getting following error message: http://appsforfree.org/apk/android-studio-osmand-build-error-message.png

It is in regards to net.osmand:OsmAndCore_android:0.1-SNAPSHOT classes not available.

Can anyone point how to fix this?

Official URL does not provide anyone to ask for help either.

1

There are 1 best solutions below

6
On

I success to build OsmAnd in android studio. You can follow this step to check out OsmAnd on Github:

  1. In Android Studio's "Welcome to Android Studio" page, select "Check out project from Version Control" .
  2. In "Clone Repository" page, clone from github's OsmAnd : https://github.com/osmandapp/Osmand
  3. In "Import Project from Gradle" page, select "Use default gradle wrapper (recommended) "
  4. After import project, in "Project Window" should have 11 projects clone from github.
  5. Download OsmAnd-resources, and rename directory to "resources", place with OsmAnd Project directory.
  6. Open Build Variant window: Build->Select Builder Variant
  7. Set OsmAnd module's Build Variant with x86 or Fat. (Fat means include all cpu's library)
  8. Run and execute on Genymotion. (or your android mobile phone)

I share the process on my blogger. It's write down by chinese, but you can understand what I done by pictures also.

Good Luck!