gpt4 book ai didi

Android DataBinding KAPT 增量支持

转载 作者:行者123 更新时间:2023-12-03 16:45:06 26 4
gpt4 key购买 nike

我看过 this answer和本网站上的其他人并使用谷歌,但我还没有找到适合这个问题的答案。这是最新版本的 KAPT 列出的剩余非增量注释处理器:

Incremental annotation processing requested, but support is disabled because the following processors are not incremental: android.databinding.annotationprocessor.ProcessDataBinding (NON_INCREMENTAL)

请注意,我已迁移到 AndroidX 并且正在使用 AGP 3.4.1(无法升级到 AGP 3.5.x)和 Gradle 5.5。任何帮助将非常感激。

最佳答案

cannot upgrade to AGP 3.5.x



这将是一个问题。报价 Google :

I am pleased to inform that data binding has become incremental, starting with AGP 3.5.0-alpha05. For safety we've put this feature behind a flag, currently off by default. To enable it, please set android.databinding.incremental=true in the Gradle properties file.



如果您一直跳到 AGP 3.6.x(当前处于 alpha 版本),默认情况下会启用增量编译。

但是,在您的版本 AFAIK 上,数据绑定(bind)内容根本不存在增量编译支持。

关于Android DataBinding KAPT 增量支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58313264/

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