Hi, I'm testing the latest Android Studio Arctic 2...
# android-studio
k
Hi, I'm testing the latest Android Studio Arctic 2020.3.1 Canary 3, and just tested the basic Compose template (1.0.0-alpha08). I'm trying to create a custom plugin in my buildSrc, but as soon as I add
com.android.tools.build:gradle:7.0.0-alpha03
as a dependency for this plugin, the application stops running at runtime with this error:
Copy code
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:
Copy code
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?