https://kotlinlang.org logo
Title
y

YASAN

02/15/2022, 5:39 AM
I am working on a simple multi module library but I get
Backend Internal error: Exception during IR lowering
on the code that worked fine on my app module.
This is my composable:
@Composable
fun YasanBrandingFooter(
    modifier: Modifier = Modifier,
    topSpacerSize: Dp = grid(8),
    bottomSpacerSize: Dp = grid(8),
    logoHeight: Dp = 48.dp,
    crossFade: Boolean = true
) {

    Column(
        modifier = modifier,
        horizontalAlignment = Alignment.CenterHorizontally
    ) {
        Spacer(Modifier.requiredHeight(topSpacerSize))
        Image(
            rememberImagePainter(
                data = R.drawable.ic_yasan_logo_text2_color,
                builder = {
                    crossfade(crossFade)
                }
            ),
            contentDescription = null,
            modifier = Modifier.requiredHeight(logoHeight)
        )
        Spacer(Modifier.requiredHeight(bottomSpacerSize))
    }


}
My library only has these dependencies
// Compose
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material:$compose_version"

// Coil
implementation("io.coil-kt:coil-compose:$coil_version")
Full log
a

Albert Chang

02/15/2022, 6:39 AM
Are you enabling compose compiler plugin by specifying
buildFeatures.compose = true
?
👀 1
🙏🏻 1
y

YASAN

02/15/2022, 7:02 AM
Oh right! Thanks its now fixed!
👍 1