How to get rid of Incremental annotation processing requested warning?

后端 未结 13 965
一生所求
一生所求 2020-12-04 08:27

I have just started using android development and trying to use Room library. Since yesterday I am facing this warning message

w: [kapt] Incremental a

13条回答
  •  半阙折子戏
    2020-12-04 08:49

    A lot of the other answers here cover up the error or disable incremental processing instead of actually making it work the way you want.

    You can enable incremental processing for your specific library in the gradle.properties file. Just add these settings, or whichever one matches the library that throws the error:

    android.databinding.incremental=true
    android.lifecycleProcessor.incremental=true
    

提交回复
热议问题