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

Venky

09/12/2020, 10:43 AM
can any one help me on getting compose samples into android studio. How should I do this? There always shows errors in Build log. Please tell me the correct way to import compose samples.
y

Yann Badoual

09/12/2020, 10:55 AM
The android gradle plugin version might be out of date. Try editing it in
buildSrc/**/dependencies.kt
eg:
buildSrc/src/main/java/com/example/compose/jetchat/buildsrc/dependencies.kt
To the latest version
(Make sure to import by selecting the project subdirectory, and not the root directory containing all the projects)
Copy code
const val androidGradlePlugin = "com.android.tools.build:gradle:4.2.0-alpha09"
the alpha version should be the same as the canary version of your Android studio