I have the following Compose dependencies, where $compose_version
is 1.0.0-alpha12:
This builds fine. However, the second I try to build this project after adding a com.google.accompanist:accompanist-flowlayout:0.19.0
dependency, I see this error in quite a few places in my project:
The case always seems to be with various composables, which accept the
onClick
argument: Button
, BottomNavigationItem
and DropDownMenuItem
. I mean, every single one of them has an InteractionState
argument alongside onClick
.
I've tried multiple versions of accompanist-flowlayout
down to 15 with no result. But I didn't experiment with other Compose dependencies versions because I inherited this project and a lot of things break when I do so.
How do i fix it?