NoSuchMethodError: No static method setContent, because of gradle buildSrc

Solution for NoSuchMethodError: No static method setContent, because of gradle buildSrc
is Given Below:

Thank you first!!

SampleProject: https://github.com/Masaki-U/JetpackComposeErrorSample/tree/main

ErrorReason: https://github.com/Masaki-U/JetpackComposeErrorSample/blob/2aa56f408592d70b9d749c84ddfed99ce79a2f29/buildSrc/build.gradle.kts#L12

Goal:
Use JetpackCompose & All module build.gradle.kts commonize by buildSrc’s Util method (Not only Property)
Give me Workaround!

Version: JetpackCompose libraries => 1.0.0, gradle => 7.0.0, JDK => 11

ExpectedSampleProject:
Open screen

ResultSampleProject:
Crash at Runtime

MultiPost: https://issuetracker.google.com/issues/195273509 (I recieve ‘Intended Behavior’)

ErrorMessage:

2021-08-03 01:01:53.104 4738-4738/jp.arsaga E/AndroidRuntime: FATAL EXCEPTION: main
    Process: jp.arsaga, PID: 4738
    java.lang.NoSuchMethodError: No static method setContent$default(Landroidx/activity/ComponentActivity;Landroidx/compose/runtime/CompositionContext;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)V in class Landroidx/activity/compose/ComponentActivityKt; or its super classes (declaration of 'androidx.activity.compose.ComponentActivityKt' appears in /data/app/jp.arsaga-8V2c7bLt8GFvNb08OtkwTw==/base.apk)
        at jp.arsaga.MainActivity.onCreate(MainActivity.kt:16)
        at android.app.Activity.performCreate(Activity.java:7136)
        at android.app.Activity.performCreate(Activity.java:7127)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

I got answer.

plugins {
    `kotlin-dsl`
}

repositories {
    jcenter()
    google()
}

dependencies {
    implementation("com.android.tools.build:gradle:7.0.0")
    implementation(kotlin("gradle-plugin","1.5.10")) // Added.
}

https://issuetracker.google.com/issues/195342732