[GraphHopper] Hi all, I'm having problems developing an Android app with GraphHopper

dolphin dolphinziyo at zoho.com
Mon Aug 18 20:46:04 UTC 2014


I'm trying to develop an Android app with MapsForge and GraphHopper for
offline routing but I'm having problems in this last step.
First of all I have to say that I had problems loading the GraphHopper
library from Maven so I imported it manually. Until here I had no more
problems.

The problems came trying to draw a route from one place to another, I
get an IllegalStateExceptionError:
08-18 16:38:54.020: E/AndroidRuntime(24530):
java.lang.IllegalStateException: Version of edges unsupported: 7, expected:5
I don't know what this problem refers to, and I don't know how to get it
working, I'm following the GraphHopper "MainActivity" sample from here
https://github.com/graphhopper/graphhopper/blob/master/android/src/com/graphhopper/android/MainActivity.java
without the MapLongTap and the download of files because I don't need them.
I tried to do it following the snippet published here
https://gist.github.com/nirabpudasaini/35ce01d5935fecf0ba8b but I'm
getting the same error.
Could anyone help me to solve this error? Or maybe guide me about how to
do offline map routing between two predefined LatLong points?
I would be so grateful.
Thank you

P.S: To generate the ".map" and "-gh" folder I followed the "QuickStart
- Android" from the docs
(https://github.com/graphhopper/graphhopper/blob/master/docs/android/index.md)





More information about the GraphHopper mailing list