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

Icaro Temponi

10/24/2019, 12:15 PM
org.gradle.api.artifacts.UnknownConfigurationException: Configuration with name 'kotlinPlugin' not found
With AGP 4.0.0-alpha01 and Kotlin gradle plugin 1.3.60-eap-25, what else do I need to add to gradle to enable this? (as shown in the compose tutorial: https://developer.android.com/jetpack/compose/setup#compose-compiler) PS: Also not working with Kotlin plugin version
1.3.60-eap-76
.
☝🏼 1
l

Luca Nicoletti

10/24/2019, 12:17 PM
Same here
i

Icaro Temponi

10/24/2019, 12:17 PM
Also, I created a new project with the compose template and found out they don't use this option there 🤔.
j

jim

10/24/2019, 1:30 PM
Sorry, the
kotlinPlugin
option is an artifact from the way we do this in aosp, which somehow made it into our docs. I pinged our docs team to get this removed. Please do not specify
kotlinPlugin
.
👍🏼 2
The kotlin compiler plugin is installed by AGP when you specify
compose true
, which is currently not used in our repository, thus the discrepancy.
l

Luca Nicoletti

10/24/2019, 1:32 PM
j

jim

10/24/2019, 1:36 PM
I am unable to reproduce the
Could not find method compose()
. Only thing I can think of is that you aren't actually using AGP 4.0.0, but you said you did specify it, so ¯\_(ツ)_/¯
☝️ 1
l

Luca Nicoletti

10/24/2019, 1:42 PM
🤦🏼‍♂️ was using it inside the wrong parent note