android - Can't instantiate Coordinate Resource System java.lang.NoClassDefFoundError: org.geotools.factory.Hints -
i trying use geotools java library in project of mine built using gradle , version 14.3:
compile 'org.geotools:gt-shapefile:14.3' compile 'org.geotools:gt-epsg-hsql:14.3'
basically, time try instantiate coordinateresourcesystem, such as:
coordinatereferencesystem crs; try { crs = crs.decode("epsg:4326"); //also tried defaultgeographiccrs.wgs84_3d } catch (factoryexception e) { e.printstacktrace(); }
i error @ runtime:
java.lang.noclassdeffounderror: org.geotools.factory.hints @ org.geotools.referencing.crs.<clinit>(crs.java:181)
all of advice i've received until has had enabling multidex , have tried every single 1 of combinations of gradle prescribed, no avail. tried cleaning , building dozens of times. no matter receive pesky error @ runtime. thoughts why be? can see class in jar.
i have noticed dependency imports several jars, similar package names. these package names causing confusion?
really @ loss here , can't continue project until i've figured out how implement code properly.
edit
here's logcat. showing there seems kind of issue how art deals of geotools classes, including culrpit hints class.
04-20 22:41:55.308 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.referencing.factory.referencingfactory> 04-20 22:41:55.311 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.factory.hints> 04-20 22:41:55.311 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.factory.hints$key> 04-20 22:41:55.319 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.factory.hints> 04-20 22:41:55.324 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.referencing.defaultauthorityfactory> 04-20 22:41:55.324 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.referencing.defaultauthorityfactory> 04-20 22:41:55.325 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.factory.hints> 04-20 22:41:55.326 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.factory.hints$key> 04-20 22:41:55.326 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.factory.hints$key> 04-20 22:41:55.329 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.factory.hints> 04-20 22:41:55.329 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.referencing.factory.abstractauthorityfactory> 04-20 22:41:55.330 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.referencing.factory.abstractauthorityfactory> 04-20 22:41:55.330 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.factory.hints> 04-20 22:41:55.339 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.geometry.directposition2d> 04-20 22:41:55.341 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.factory.hints> 04-20 22:41:55.342 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.factory.hints$key> 04-20 22:41:55.355 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.357 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.358 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.359 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.360 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.361 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.362 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.363 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.363 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.364 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.365 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.366 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.367 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.368 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.371 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.372 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.374 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.375 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.376 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.376 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.377 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.378 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.378 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.379 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.379 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.383 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.384 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.384 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.389 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderableop> 04-20 22:41:55.402 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.406 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderedop> 04-20 22:41:55.406 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.planarimage> 04-20 22:41:55.408 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderableop> 04-20 22:41:55.409 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderableop> 04-20 22:41:55.410 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.renderableop> 04-20 22:41:55.414 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<javax.media.jai.jai$renderingkey> 04-20 22:41:55.414 5089-5089/com.myproject i/art: rejecting re-init on previously-failed class java.lang.class<org.geotools.factory.hints> 04-20 22:41:55.414 5089-5089/com.myproject d/androidruntime: shutting down vm 04-20 22:41:55.415 5089-5089/com.myproject e/androidruntime: fatal exception: main process: com.myproject, pid: 5089 java.lang.noclassdeffounderror: org.geotools.factory.hints @ org.geotools.referencing.crs.<clinit>(crs.java:181) @ com.myproject.motiontrackingactivity.oncreate(motiontrackingactivity.java:122) @ android.app.activity.performcreate(activity.java:5231) @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1087) @ android.app.activitythread.performlaunchactivity(activitythread.java:2160) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2246) @ android.app.activitythread.access$800(activitythread.java:136) @ android.app.activitythread$h.handlemessage(activitythread.java:1197) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:136) @ android.app.activitythread.main(activitythread.java:5030) @ java.lang.reflect.method.invoke(native method) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:793) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:609)
the "usual way" break geotools referencing not include epsg factory or include more one. question can't tell problem. described in faq need 1 of epsg
jars, gt-epsg-hsql
.
your question tagged android , there some known issues spi based factory finder system geotools uses don't think should issue.
Comments
Post a Comment