Trying to update Compose from beta03 to beta05 and...
# compose
a
Trying to update Compose from beta03 to beta05 and hitting the following Lint crash (inside the thread). Is it a known issue? What could be a problem?
l
Sounds like a bug in one of our lint checks - you can suppress it by doing:
@Suppress("UnusedCrossfadeTargetStateParameter")
around the function it is failing on Could you share the code it is failing on? I guess you defined some extension methods similar to the ones the lint check runs on 🙂
a
Sure, the related source code is here.
@Suppress
seems like does not help, the following helps though:
Copy code
android {
    lintOptions {
        disable "UnusedCrossfadeTargetStateParameter"
    }
}
l
For now you can workaround the crash by doing:
Copy code
Crossfade(
            targetState = routerState.activeChild,
            animationSpec = animationSpec,
         ) {
    content(it)
}
a
Thanks!