You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConfigCirculantTracker config = new ConfigCirculantTracker();
CirculantTracker<GrayU8> tracker = FactoryTrackerObjectAlgs.circulant(config, GrayU8.class);
Stacktrace:
E/MessageQueue-JNI: java.lang.RuntimeException: java.lang.InstantiationException: java.lang.Class<boofcv.core.image.border.BorderIndex1D_Extend> has no zero argument constructor
at boofcv.core.image.border.ImageBorder1D_S32.<init>(ImageBorder1D_S32.java:36)
at boofcv.core.image.border.FactoryImageBorder.single(FactoryImageBorder.java:139)
at boofcv.factory.interpolate.FactoryInterpolation.bilinearPixelS(FactoryInterpolation.java:187)
at boofcv.factory.tracker.FactoryTrackerObjectAlgs.circulant(FactoryTrackerObjectAlgs.java:117)
Could you post a complete but very simple project which reproduces the "no zero argument constructor" exception? I was not able to reproduce this issue in a simple DesktopApplication
The 0.26 problem is most likely caused by a call a function which using Swing to visualize data or load an image. The AndroidDemo includes core without issue in 0.26
Suddenly I get this error in my own code where I instantiate a class with
nonAbstractPublicStaticClass.newInstance()
And I still get this error after I have added a non arg constructor or set minifyEnabled/shrinkResources to false! This seems to be a more general problem.
The problem was minification while not explicitly using those classes. Using multidex and setting minification to off, it works. Now I need to find a way to use it with minification without getting all those swing warnings.
The solution to this problem is to not compile it inside the Android app and instead just link to its jars.
I have downloaded the boofcv-v0.27-libs.zip. Which jars do I need to add in my module's libs/ dir to make boofcv-core work?
On Android with org.boofcv:boofcv-core:0.27 :
Stacktrace:
The same happens when using FactoryTrackerObjectQuad, while not happening in the DemoApp ( https://github.com/lessthanoptimal/BoofAndroidDemo/blob/master/app/src/main/java/org/boofcv/android/tracker/ObjectTrackerActivity.java#L100 ):
From build.gradle:
Using 'org.boofcv:core:0.26' I get this build error:
This error wont disappear if ProGuard is enabled and
added to the proguard rules.
Currently there is no way to let even 1 line with BoofCV code run inside my Android project. Probably sourceCompatibility is the issue?
The text was updated successfully, but these errors were encountered: