kluck
12/21/2020, 1:59 PMcom.android.tools.build:gradle:7.0.0-alpha03
as a dependency for this plugin, the application stops running at runtime with this error:
java.lang.NoSuchMethodError: No static method setContent$default(Landroidx/activity/ComponentActivity;Landroidx/compose/runtime/CompositionReference;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Landroidx/compose/runtime/Composition; in class Landroidx/compose/ui/platform/WrapperKt; or its super classes (declaration of 'androidx.compose.ui.platform.WrapperKt' appears in /data/app/com.example.testapp-5r47dg2atsthGc_mzKEGyA==/base.apk)
at com.example.testapp.MainActivity.onCreate(MainActivity.kt:16)
Here's the only file I added on top of a vanilla new project with a compose activity:
buildSrc/build.gradle.kts:
import org.gradle.kotlin.dsl.`kotlin-dsl`
plugins {
`kotlin-dsl`
}
repositories {
jcenter()
google()
}
dependencies {
implementation("com.android.tools.build:gradle:7.0.0-alpha03") // --> This line breaks the runtime
}
Any idea what could be the issue?