Android 使用Firebase的Jetpack Compose编译错误

Android 使用Firebase的Jetpack Compose编译错误,android,firebase,android-studio,android-jetpack-compose,Android,Firebase,Android Studio,Android Jetpack Compose,我跟随google在我的项目中设置compose,这是我的应用程序级别build.gradle: apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'com.google.gms.google-services' apply plugin: 'com.android.application' a

我跟随google在我的项目中设置compose,这是我的应用程序级别
build.gradle

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.android.application'
apply plugin: 'kotlin-kapt'
apply plugin: 'dagger.hilt.android.plugin'

android {
    compileSdkVersion rootProject.compileSdkVersion
    buildToolsVersion rootProject.buildToolsVersion

    defaultConfig {
        applicationId "com.super.note"
        minSdkVersion rootProject.minSdkVersion
        targetSdkVersion rootProject.targetSdkVersion
        versionCode rootProject.versionCode
        versionName rootProject.versionName

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    kotlinOptions {
        jvmTarget = "1.8"
        useIR = true
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    buildFeatures {
        compose true
    }

    composeOptions {
        kotlinCompilerExtensionVersion Versions.compose
    }
}

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation Kotlin.stdlib
    implementation AndroidX.coreKtx
    implementation AndroidX.appcompat
    implementation AndroidX.constraintLayout
    implementation AndroidX.recyclerView
    implementation Lifecycle.extensions
    implementation Lifecycle.livedata
    implementation Material.core
    implementation AndroidX.legacySupport
    androidTestImplementation "androidx.test.ext:junit:$junit_android_version"

    //fragment androidx
    implementation AndroidX.fragment
    implementation AndroidX.fragmentKtx

    //navigation
    implementation Navigation.fragment
    implementation Navigation.uiKtx

    //Debugging
    implementation Debug.timber

    //lottie
    implementation Animation.lottie

    //Hilt DI
    implementation Di.hiltAndroid
    kapt Di.hiltCompiler
    implementation Di.hiltViewModel
    kapt Di.hiltAndroidX

    //compose
    implementation Compose.core
    implementation Compose.material
    implementation Compose.tooling

    implementation project(":domain")
    implementation project(":data")
}
我在尝试构建时遇到此错误:

e:java.lang.NoSuchMethodError:org.jetbrains.kotlin.codegen.state.GenerationState$Builder.isIrBackend(Z)Lorg/jetbrains/kotlin/codegen/state/GenerationState$Builder;
我使用Firebase、hilt和corutine,并使用Android Studio 4.2 Canary构建项目


有没有人有办法解决这个问题,或者我现在不能使用firebase和google play corutine与compose?谢谢

谢谢,但在我的项目中,我不使用房间数据库