Thread
#compose
    l

    Lilly

    1 year ago
    When I try to preview a composable I get Render problems, but I can't figure out what the problem is about:
    @Preview
    @Composable
    fun TestPreview() {
        Text("Hello World!")
    }
    I'm on alpha09 with latest IDE.
    jim

    jim

    1 year ago
    Sounds like the compiler and runtime are not at the same version? Does this code run correctly when you deploy it to a device/emulator?
    l

    Lilly

    1 year ago
    Yes it does
    Sorry I would provide more information but I can't see any issues. The versions are up to date and the project buid successfully
    androidx.ui:ui-tooling:1.0.0-alpha09
    had to be renamed to
    androidx.compose.ui:ui-tooling:1.0.0-alpha09
    . Now it works. This isn't mentioned in release notes properly @jim
    The artifact
    ui-tooling
    isn't also mentioned explicitly. For new comers it's hard to find those artifacts. The same applies for
    androidx.compose.material:material-icons-extended:1.0.0-alpha09
    . It would be great if you can reveal them explicity under https://developer.android.com/jetpack/androidx/releases/compose-ui#declaring_dependencies
    jim

    jim

    1 year ago
    FWIW the updated dependencies are in the code block here: https://developer.android.com/jetpack/compose/setup#compose-compiler And it looks like the renaming happened as part of
    -alpha08
    (ie. prior to
    -alpha09
    ). But yes, point taken, we should have mentioned it in the release notes. When we have so many things happening at once, it's sometimes hard to keep track of them all, sorry about that.
    Also worth noting that you can always browse the maven artifacts by visiting http://maven.google.com/
    l

    Lilly

    1 year ago
    t's sometimes hard to keep track of them all, sorry about that
    No problem. Thanks boss 🙂