OSMdroid could not find GeoPoint class

I create my own apsmdroid apk from svn, I checked. Using this howto: mappingdev.wordpress.com/2011/08/24/166/ I was able to create a jar file from Osmdroid and include it in an Android app. The problem is that I get warnings when my application starts.

09-21 16: 09: 08.465: E / dalvikvm (23563): Could not find class 'org.osmdroid.util.GeoPoint' referenced by com.globaler.app.Poi.fillFromCursor

09-21 16: 09: 08.470: W / dalvikvm (23563): VFY: cannot find the class specified in the signature (Lorg / osmdroid / util / BoundingBoxE6;)

09-21 16: 09: 08.470: I / dalvikvm (23563): Could not find the org.osmdroid.util.BoundingBoxE6.getLatSouthE6 method referenced by the com.globaler.app.Poi.getInRectangle method

09-21 16: 09: 08.470: W / dalvikvm (23563): VFY: cannot enable virtual method 10324: Lorg / osmdroid / util / BoundingBoxE6; .getLatSouthE6 () I

What am I doing wrong? Other methods seem to be accepted, only those are not. Your help will be appreciated.

thanks

+4
source share
1 answer

This seems like a binding problem.

You must make sure that your jar file is correctly copied to the /lib directory of your project AND added to the build path.

If you are using Eclipse / ADT, you must upgrade to the latest version (Juno, released June 24, 2014, while I am writing this). It automatically binds to the binding when the jar files are under / lib.

If your application is confused, this could also be a ProGuard problem. In this case, please let me know, there is already an SO question there regarding this.

0
source

All Articles