Search code examples
androidopenstreetmaposmdroidnosuchmethoderror

OSMdroid Strange NoSuchMethodError when placing marker


I'm building a basic osmdroid android application but i'm getting a strange error when trying to place a marker that I can't figure out. It seems to be something to do with getting the geopoint location

I'm getting the following come up in logcat:

06-30 12:29:43.124: E/AndroidRuntime(28118): java.lang.NoSuchMethodError: org.osmdroid.util.GeoPoint.clone
06-30 12:29:43.124: E/AndroidRuntime(28118):    at org.osmdroid.bonuspack.overlays.Marker.setPosition(Marker.java:123)

Has anyone come across this before? or something similar?


Solution

  • Which version of osmdroid, and which version of OSMBonusPack are you using? They must be compatible. Refer to OSMBonusPack How to include page.