java.lang.VerifyError: Verifier rejected class com.machinezoo.sourceafis.FingerprintTransparency: java8.util.function.Supplier com.machinezoo.sourceafis.FingerprintTransparency.json(java8.util.function.Supplier) failed to verify: java8.util.function.Supplier com.machinezoo.sourceafis.FingerprintTransparency.json(java8.util.function.Supplier): [0x0] Call site #23 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logBooleanMap(java.lang.String, com.machinezoo.sourceafis.BooleanMap) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logBooleanMap(java.lang.String, com.machinezoo.sourceafis.BooleanMap): [0x6] Call site #21 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logDoubleMap(java.lang.String, com.machinezoo.sourceafis.DoubleMap) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logDoubleMap(java.lang.String, com.machinezoo.sourceafis.DoubleMap): [0x6] Call site #19 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logHistogram(java.lang.String, com.machinezoo.sourceafis.Histogram) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logHistogram(java.lang.String, com.machinezoo.sourceafis.Histogram): [0x6] Call site #15 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logMinutiae(java.lang.String, com.machinezoo.sourceafis.TemplateBuilder) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logMinutiae(java.lang.String, com.machinezoo.sourceafis.TemplateBuilder): [0x9] Call site #14 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logPointMap(java.lang.String, com.machinezoo.sourceafis.PointMap) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logPointMap(java.lang.String, com.machinezoo.sourceafis.PointMap): [0x6] Call site #17 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logSkeleton(java.lang.String, com.machinezoo.sourceafis.Skeleton) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logSkeleton(java.lang.String, com.machinezoo.sourceafis.Skeleton): [0x18] Call site #12 bootstrap return type is not a referenceVerifier rejected class com.machinezoo.sourceafis.FingerprintTransparency: void com.machinezoo.sourceafis.FingerprintTransparency.logBestMatch(int) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logBestMatch(int): [0xC] Call site #11 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logBlockMap(com.machinezoo.sourceafis.BlockMap) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logBlockMap(com.machinezoo.sourceafis.BlockMap): [0x6] Call site #4 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logEdgeHash(gnu.trove.map.hash.TIntObjectHashMap) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logEdgeHash(gnu.trove.map.hash.TIntObjectHashMap): [0x6] Call site #7 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logEdgeTable(com.machinezoo.sourceafis.NeighborEdge[][]) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logEdgeTable(com.machinezoo.sourceafis.NeighborEdge[][]): [0x6] Call site #5 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logIsoMetadata(int, int, int, int) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logIsoMetadata(int, int, int, int): [0xC] Call site #6 bootstrap return type is not a reference
2019-05-16 23:29:43.740 9932-9932/com.manna.wft E/AndroidRuntime: void com.machinezoo.sourceafis.FingerprintTransparency.logPairing(int, com.machinezoo.sourceafis.MinutiaPair[]) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logPairing(int, com.machinezoo.sourceafis.MinutiaPair[]): [0xC] Call site #9 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logRootPairs(int, com.machinezoo.sourceafis.MinutiaPair[]) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logRootPairs(int, com.machinezoo.sourceafis.MinutiaPair[]): [0xC] Call site #8 bootstrap return type is not a reference
void com.machinezoo.sourceafis.FingerprintTransparency.logScore(com.machinezoo.sourceafis.Score) failed to verify: void com.machinezoo.sourceafis.FingerprintTransparency.logScore(com.machinezoo.sourceafis.Score): [0xC] Call site #10 bootstrap return type is not a reference (declaration of 'com.machinezoo.sourceafis.FingerprintTransparency' appears in base.apk)
at com.machinezoo.sourceafis.FingerprintTemplate.<init>(FingerprintTemplate.java:34)
at com.manna.wft.MatchAttendance.onCreate(MatchAttendance.java:60)
at android.app.Activity.performCreate(Activity.java:7224)
at android.app.Activity.performCreate(Activity.java:7213)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2926)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6810)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am running out of ideas. You will probably have to rebuild SourceAFIS from sources and remove/modify any parts that cause trouble.
But I still think there is something wrong with your build. The stack trace mentions Java 8 functional interface. Java 8 features somehow aren't handled properly, but I don't know what is causing it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My code is here. I'm not using transparency. But all the errors are coming from there.
The error log is:
What Android API level are you building against?
minSdkVersion 26
targetSdkVersion 26
That should be high enough to support all the Java 8 features SourceAFIS needs. What's the value of compileSdkVersion?
Check build tools version (buildToolsVersion) and try to upgrade to latest build tools.
App crashes here: http://prntscr.com/nphiw9
I tried upgrading the buildToolVersion to "28.0.3" the latest one.
I am running out of ideas. You will probably have to rebuild SourceAFIS from sources and remove/modify any parts that cause trouble.
But I still think there is something wrong with your build. The stack trace mentions Java 8 functional interface. Java 8 features somehow aren't handled properly, but I don't know what is causing it.
Try addding adding the following compile options to your build.gradle file:
See working gradle build file below:
Last edit: Johan Hanekom 2019-06-24
FYI, SourceAFIS 3.6.0 runs on Android API level 24+.