Jetpack compose breaks Room compiler

前端 未结 1 427
陌清茗
陌清茗 2021-02-07 10:09

I created a completely fresh jetpack compose project (from the project template) with Android Studio 4.0 Canary 6 and I attempted to add room dependencies. Here is my app-level

1条回答
  •  悲&欢浪女
    2021-02-07 10:36

    Should be fixed in 1.3.61... but Jetpack Compose compiler plugin is not updated.

    You can find more information in the following YouTrack issue: IR (Jetpack Compose), KAPT, Room: "AssertionError: IR backend shouldn't call KotlinTypeMapper.mapType: MainActivity". Last comment states that:

    The problem here is that JetPack Compose hasn't updated its internal Kotlin compiler to 1.3.61 yet. We'll see what we can do about it.

    Also, the following issue in Google Issue Tracker: Annotation processors fail when compose is enabled

    0 讨论(0)
提交回复
热议问题