Thread
#compose
    Dominaezzz

    Dominaezzz

    2 years ago
    Does compose work in stable Android Studio yet? Since it doesn't need the custom Kotlin compiler build anymore.
    Adam Powell

    Adam Powell

    2 years ago
    not without some custom gradle configuration to enable the compiler plugin, since the higher level android gradle plugin options that do it for you are only present in the alpha agp builds. You also won't get compose-specific syntax highlighting or features like Preview
    Dominaezzz

    Dominaezzz

    2 years ago
    Oh okay. Thanks!
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    2 years ago
    Is compose support going to start migrating up to beta, etc with 4.2?
    r

    romainguy

    2 years ago
    Android Studio and Compose are not synced up for versioning
    Alex Burdusel

    Alex Burdusel

    2 years ago
    Any guidelines for the gradle configuration for making it work in the stable version? I'm more interested in making it work in Intellij than in AS
    r

    romainguy

    2 years ago
    You need to have AGP 4.2
    Alex Burdusel

    Alex Burdusel

    2 years ago
    upgraded agp to 4.2:
    com.android.tools.build:gradle:4.2.0-alpha08
    and gradle wrapper to
    gradle-6.6-rc-6-all
    , but I'm still getting
    This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer.
    Using Intellij Ultimate 2020.2.1.
    r

    romainguy

    2 years ago
    AGP 4.2 is what you need to build at the Gradle level, but it looks like the IDE itself needs the be in sync with the version
    Alex Burdusel

    Alex Burdusel

    2 years ago
    yeah, it probably works when building from command line, but I'd also like the IDE previews. guess I'll switch back to AS preview
    r

    romainguy

    2 years ago
    More importantly we don’t do any testing or validation with versions < 4.2, so there’s no guarantee whatsoever it would work. You would also lose various features (previews, code completion support, etc.)
    Chris Sinco [G]

    Chris Sinco [G]

    2 years ago
    Compose tooling will continue to be in Canary until the library hits Beta and Stable