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

aipok

04/27/2020, 7:13 AM
Does anyone have
dev09
working. For me with latest AS 4.1 canary 7 and
dev09
the preview not displayed and every time I’m trying to run the code on the device it gives me an error
java.lang.NoSuchMethodError: No static method setContent(Landroidx/activity/ComponentActivity;Lkotlin/jvm/functions/Function0;)Landroidx/compose/Composition
a

aipok

04/27/2020, 8:27 AM
thanks
👍 1
g

Guy Bieber

04/28/2020, 5:45 PM
Copy code
dependencies {
    def compose_version = "0.1.0-dev09"

    kotlinPlugin "androidx.compose:compose-compiler:$compose_version"
    implementation "androidx.compose:compose-runtime:$compose_version"
}
composeOptions {
    kotlinCompilerVersion "1.3.61-dev-withExperimentalGoogleExtensions-20200129"
    kotlinCompilerExtensionVersion "0.1.0-dev09"
}