https://kotlinlang.org logo
#compose
Title
# compose
d

Dominaezzz

09/04/2020, 1:34 PM
Does compose work in stable Android Studio yet? Since it doesn't need the custom Kotlin compiler build anymore.
a

Adam Powell

09/04/2020, 2:30 PM
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
d

Dominaezzz

09/04/2020, 2:42 PM
Oh okay. Thanks!
z

Zach Klippenstein (he/him) [MOD]

09/04/2020, 5:37 PM
Is compose support going to start migrating up to beta, etc with 4.2?
r

romainguy

09/04/2020, 5:49 PM
Android Studio and Compose are not synced up for versioning
a

Alex Burdusel

09/04/2020, 6:05 PM
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

09/04/2020, 6:14 PM
You need to have AGP 4.2
a

Alex Burdusel

09/04/2020, 6:49 PM
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

09/04/2020, 6:55 PM
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
a

Alex Burdusel

09/04/2020, 6:56 PM
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

09/04/2020, 6:56 PM
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.)
👍 1
c

Chris Sinco [G]

09/10/2020, 5:29 PM
Compose tooling will continue to be in Canary until the library hits Beta and Stable