‘annotationProcessor‘ dependencies won‘t be recognized as kapt annotation processors. Please change

2022-06-10 14:42:14 浏览数 (1)

‘annotationProcessor’ dependencies won’t be recognized as kapt annotation processors. Please change the configuration name to ‘kapt’ for these artifacts: ‘com.airbnb:deeplinkdispatch-processor:4.1.0’.

简而言之,需要把annotationProcessor切换为kapt就可以了。

切换前:

代码语言:javascript复制
    api 'com.github.bumptech.glide:glide:4.9.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'

切换后:

代码语言:javascript复制
    api 'com.github.bumptech.glide:glide:4.9.0'
    kapt 'com.github.bumptech.glide:compiler:4.9.0'

0 人点赞