Does compose work in stable Android Studio yet? Si...
# compose
d
Does compose work in stable Android Studio yet? Since it doesn't need the custom Kotlin compiler build anymore.
a
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
Oh okay. Thanks!
z
Is compose support going to start migrating up to beta, etc with 4.2?
r
Android Studio and Compose are not synced up for versioning
a
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
You need to have AGP 4.2
a
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
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
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
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
Compose tooling will continue to be in Canary until the library hits Beta and Stable