Skip to content

Crash when updating to latest compose bom 2025.09.01 #424

@kikin81

Description

@kikin81

When updating projects to the Compose BOM 2025.09.01, Showkase crashes on launch.

This is due to the Compose Material library moving the Icons set into a separate Gradle dependency starting in newer BOM versions.

Workaround

Projects can add the separate dependency to their app module:

// In gradle/libs.versions.toml
androidx-compose-material-icons-extended = { group = "androidx.compose.material", name = "material-icons-extended" }

// In app/build.gradle.kts
dependencies {
    implementation(libs.androidx.compose.material.icons.extended)
}

Proposed Fix

Showkase should include the material-icons dependency itself (or at least material-icons-core) to prevent this crash, since the library relies on Material Icons for
its UI.

Environment

  • Showkase version: 1.0.5
  • Compose BOM: 2025.09.01
  • Android Gradle Plugin: 8.13.0

Stack Trace

Process: com.turo.pedal.showcase, PID: 4597
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/material/icons/Icons$Filled;
    at com.airbnb.android.showkase.ui.ComposableSingletons$ShowkaseBrowserAppKt$lambda$293949828$1.invoke(ShowkaseBrowserApp.kt:387)
    at com.airbnb.android.showkase.ui.ComposableSingletons$ShowkaseBrowserAppKt$lambda$293949828$1.invoke(ShowkaseBrowserApp.kt:386)
    at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.kt:121)
    at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.kt:51)
    at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:390)
    at androidx.compose.material.IconButtonKt.IconButton(IconButton.kt:76)
    at com.airbnb.android.showkase.ui.ShowkaseBrowserAppKt.ShowkaseAppBarActions(ShowkaseBrowserApp.kt:381)
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.compose.material.icons.Icons$Filled"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions