This error only happens with Proguard 7.4.x. Adding -dontoptimize or reverting to 7.2.2 gets rid of the crash.
java.lang.VerifyError: Bad return type
Exception Details:
Location:
b/b/e/cb.a(Lkotlin/jvm/functions/Function0;)Lb/b/e/V; @18: areturn
Reason:
Type 'b/b/e/ct' (current frame, stack[0]) is not assignable to 'b/b/e/V' (from method signature)
Current Frame:
bci: @18
flags: { }
locals: { 'kotlin/jvm/functions/Function0' }
stack: { 'b/b/e/ct' }
Bytecode:
0000000: 2a12 06b8 0016 bb00 0759 2a01 b700 11c0
0000010: 000c b0
at b.b.e.t.b(SourceFile:51531)
at b.b.e.t.a(SourceFile:3236)
at b.b.e.E.c(SourceFile:723)
at b.b.e.bi.a(SourceFile:1071)
at b.b.e.E.d(SourceFile:631)
at b.b.e.E.a(SourceFile:617)
at b.b.f.u.i.invokeSuspend(SourceFile:219)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:33)
at kotlinx.coroutines.DispatchedTask.run(SourceFile:108)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
This error only happens with Proguard 7.4.x. Adding
-dontoptimize
or reverting to 7.2.2 gets rid of the crash.Proguard 7.3.2 has a different error:
Proguard 7.2.2 works fine.