I have just upgraded my Compose multiplatform project (desktop & android) to Kotlin 1.9.0 and Compose 1.5.0-dev1114. This works without problems when I run from the IDE or when I execute the gradle task ‘runDistributable’. But when I try to execute ‘runReleaseDistributable’ the build part works fine too but the program crashes immediately with:
Copy code
Exception in thread "main" java.lang.VerifyError: Instruction type does not match stack map
Exception Details:
Location:
androidx/compose/animation/core/AnimationSpecKt.estimateAnimationDurationMillis(FFFFF)J @604: dstore
Reason:
Type top (current frame, locals[68]) is not assignable to double (stack map, locals[68])