Thread
#compose
    Vivek Sharma

    Vivek Sharma

    1 year ago
    Hey devs, I was trying compose navigation, and I added the
    implementation "androidx.navigation:navigation-compose:1.0.0-alpha01"
    and I didnt write any code in main activity except the code which is generated at build of new project and app didnt run Logcat showing :
    java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/foundation/Background;
    at androidx.compose.foundation.BackgroundKt.background-1xq40Q0(Background.kt:44)
    at androidx.compose.material.SurfaceKt.Surface-biUpMIw(Surface.kt:101)
    sindrenm

    sindrenm

    1 year ago
    If you've updated to compose-* alpha07, then you'll probably also need to update to navigation-compose alpha02. Just FYI. 😒imple_smile:
    Vivek Sharma

    Vivek Sharma

    1 year ago
    is navigation-compose alpha02 out ?
    @sindrenm I tried alpha02 and it didnt do anything
    sindrenm

    sindrenm

    1 year ago
    Yeah, got released together with alpha07. I'm not using navigation-compose myself, though, so I don't think I can help much more, I just reckon you might need to keep these versions in sync now in the alpha period.
    Vivek Sharma

    Vivek Sharma

    1 year ago
    Thanks fixed, yeah navigation I guess doesnt work with compose04
    or below 06
    sindrenm

    sindrenm

    1 year ago
    Oh, right! Yeah, that also makes sense, I guess. Glad to see you figured it out. 😒imple_smile: