Fatal Exception When Enabling R8 in Android App with Jetpack Compose and Coroutines - ClassCastException Issue
I'm currently developing an AndroidTV application using Jetpack Compose, Retrofit, and Coroutines. To test the performance issues in my project, I need to enable R8 mode. However, when I do so, I encounter the following error:
Fatal Exception: java.lang.ClassCastException:
at com.xx.xx.domain.home.usecase.XxxXUseCase$invoke$2.invokeSuspend(XxxXUseCase.kt:24)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at...