florent
03/18/2024, 12:08 AM> Task appwear:minifyReleaseWithR8 FAILED
ERROR: R8: java.lang.NullPointerException: Cannot invoke "com.android.tools.r8.graph.D0.C1()" because the return value of "com.android.tools.r8.graph.x.d(com.android.tools.r8.graph.H2)" is nullI am having it when doing release build with
com.android.application
at 8.4.0-alpha13, but it isn't happening with my mobile companion app. I have tried to Google it but I haven't found much relevant stuffyschimke
03/18/2024, 5:38 AMyschimke
03/18/2024, 9:52 AMyschimke
03/18/2024, 9:53 AMflorent
03/18/2024, 12:51 PMyschimke
03/18/2024, 1:06 PMflorent
03/18/2024, 1:24 PMcoreLibraryDesugaring "com.android.tools:desugar_jdk_libs:$core_lib_desugaring"
api "androidx.wear.compose:compose-material:$wear_compose_version"
api "androidx.wear.compose:compose-foundation:$wear_compose_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlin_serialization"
implementation "androidx.wear:wear-ongoing:1.0.0"
ksp "me.tatarka.inject:kotlin-inject-compiler-ksp:$kotlin_inject_version"
Then it is probably a bug on the wear-ongoing dep?florent
03/18/2024, 1:27 PMflorent
03/18/2024, 1:27 PMyschimke
03/18/2024, 1:32 PMflorent
03/18/2024, 1:36 PMflorent
03/19/2024, 11:28 PMsealed class Example {
sealed class Test : Example() {
data object Loading : Test()
}
}
The sealed class aren't supported apparently, if you swap them to sealed interface it works well