aipok
04/27/2020, 7:13 AMdev09
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
Kazemihabib1996
04/27/2020, 7:48 AMaipok
04/27/2020, 8:27 AMGuy Bieber
04/28/2020, 5:45 PMdependencies {
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"
}