gpt4 book ai didi

java - Kotlin kapt 和 android 架构组件构建失败

转载 作者:IT老高 更新时间:2023-10-28 13:36:18 25 4
gpt4 key购买 nike

我正在使用 Kotlin、kapt 和 Android 架构组件。当我构建项目时,一切似乎都很好,但是在尝试在设备/模拟器 Gradle 的 :assemble 任务上运行应用程序后抛出这些错误:

Warning:warning: Supported source version 'RELEASE_7' from annotation processor 'android.arch.persistence.room.RoomProcessor' less than -source '1.8'

Warning:warning: Supported source version 'RELEASE_7' from annotation processor 'android.arch.lifecycle.LifecycleProcessor' less than -source '1.8'

Warning:warning: The following options were not recognized by any processor: '[kapt.kotlin.generated]'

构建失败。有人可以帮我吗?

更新

  • 模块 build.gradle HERE
  • 项目 build.gradle HERE

最佳答案

我在 1.0.0-alpha3 版本中遇到了同样的问题,但在 1.0.0-alpha1 版本中一切正常。

关于java - Kotlin kapt 和 android 架构组件构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44488620/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com