Is anyone else facing compiler issues in projects with multi-modules?
Copy code
Caused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'Row$default' into
@androidx.compose.runtime.Composable public fun Error(): kotlin.Unit
Possible related issue: https://issuetracker.google.com/issues/189138228
Working with Compose in a small sandbox app works fine but as soon as I try to integrate it into our main app I get the above error when using any Composable that’s an inline function (
Row
and
Column
for example)
We started playing with Compose during the first RC and have seen it since then and continue to see it in todays 1.0.1 release
m
Michael Torres
10/28/2021, 4:55 AM
I just ran into this exact issue using
1.0.4
. Have you had any luck finding a solution?
n
Nicholas Doglio
10/28/2021, 2:12 PM
It ended up being an issue with how we were configuring compose within our modules. Originally we enabled compose in the
allprojects
block but after we moved to enabling it on a per module basis it went away 🤷♀️
m
Michael Torres
10/28/2021, 2:55 PM
Thank you, that’s good to know!
It looks like my issue was caused from AGP inside BuildSrc