Hi kindly assist me in running this library in android studio. It throws error
java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/imageio/ImageIO; at com.machinezoo.sourceafis.TemplateBuilder.lambda$readImage$1$TemplateBuilder(TemplateBuilder.java:134) at com.machinezoo.sourceafis.TemplateBuilder$$Lambda$1.get(Unknown Source) at com.machinezoo.noexception.CheckedExceptionHandler.get(CheckedExceptionHandler.java:1598) at com.machinezoo.sourceafis.TemplateBuilder.readImage(TemplateBuilder.java:134) at com.machinezoo.sourceafis.TemplateBuilder.extract(TemplateBuilder.java:19) at com.machinezoo.sourceafis.FingerprintTemplate.create(FingerprintTemplate.java:92) at com.socialpayments.ui.activities.FingerPrintActivity.checkIfFingerExistsForThisCard(FingerPrintActivity.java:287) at com.socialpayments.ui.activities.FingerPrintActivity.retrieveImage(FingerPrintActivity.java:138) at com.socialpayments.ui.activities.FingerPrintActivity.enroll(FingerPrintActivity.java:113) at com.socialpayments.ui.activities.FingerPrintActivity.onViewClicked(FingerPrintActivity.java:251) at com.socialpayments.ui.activities.FingerPrintActivity_ViewBinding$1.doClick(FingerPrintActivity_ViewBinding.java:42) at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22) at android.view.View.performClick(View.java:4781) at android.view.View$PerformClick.run(View.java:19874) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:925) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:720) Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.imageio.ImageIO" on path: DexPathList[[zip file "/data/app/com.socialpayments-2/base.apk"],nativeLibraryDirectories=[/data/app/com.socialpayments-2/lib/arm, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) at com.machinezoo.sourceafis.TemplateBuilder.lambda$readImage$1$TemplateBuilder(TemplateBuilder.java:134) at com.machinezoo.sourceafis.TemplateBuilder$$Lambda$1.get(Unknown Source) at com.machinezoo.noexception.CheckedExceptionHandler.get(CheckedExceptionHandler.java:1598) at com.machinezoo.sourceafis.TemplateBuilder.readImage(TemplateBuilder.java:134) at com.machinezoo.sourceafis.TemplateBuilder.extract(TemplateBuilder.java:19) at com.machinezoo.sourceafis.FingerprintTemplate.create(FingerprintTemplate.java:92) at com.socialpayments.ui.activities.FingerPrintActivity.checkIfFingerExistsForThisCard(FingerPrintActivity.java:287) at com.socialpayments.ui.activities.FingerPrintActivity.retrieveImage(FingerPrintActivity.java:138) at com.socialpayments.ui.activities.FingerPrintActivity.enroll(FingerPrintActivity.java:113) at com.socialpayments.ui.activities.FingerPrintActivity.onViewClicked(FingerPrintActivity.java:251) at com.socialpayments.ui.activities.FingerPrintActivity_ViewBinding$1.doClick(FingerPrintActivity_ViewBinding.java:42) at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22) at android.view.View.performClick(View.java:4781) at android.view.View$PerformClick.run(View.java:19874) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:925) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:720) Suppressed: java.lang.ClassNotFoundException: javax.imageio.ImageIO at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504) ... 23 more Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Vanilla SourceAFIS for Java won't run on Android. Use hacks described here:
https://sourceforge.net/p/sourceafis/discussion/1051112/thread/ad581827/
Or, if this is a commercial project, consider sponsoring the Android port:
https://sourceafis.machinezoo.com/custom#android
I tried that hack but i can't overide that class
https://sourceforge.net/p/sourceafis/discussion/1051112/thread/ad581827/ kindly share link the source code to the library version named i.e sourceafis-2.2.0.jar
I think the hack requires modification of SourceAFIS source code and rebuild from sources. Forget the pre-built JAR.
FYI, SourceAFIS 3.6.0 runs on Android API level 24+.
Log in to post a comment.
Hi kindly assist me in running this library in android studio. It throws error
Vanilla SourceAFIS for Java won't run on Android. Use hacks described here:
https://sourceforge.net/p/sourceafis/discussion/1051112/thread/ad581827/
Or, if this is a commercial project, consider sponsoring the Android port:
https://sourceafis.machinezoo.com/custom#android
I tried that hack but i can't overide that class
https://sourceforge.net/p/sourceafis/discussion/1051112/thread/ad581827/
kindly share link the source code to the library version named i.e sourceafis-2.2.0.jar
I think the hack requires modification of SourceAFIS source code and rebuild from sources. Forget the pre-built JAR.
Last edit: Robert Važan 2018-03-16
FYI, SourceAFIS 3.6.0 runs on Android API level 24+.