Why does the gradle annotation processing framework need to be redeclared everywhere?

I have a module named core , in which I have declared that I rely on an annotation processing framework arouter

the code is as follows

    //...
    api project(":core")
    //kapt "com.alibaba:arouter-compiler:1.1.4"

but it has no effect.

is kapt must be declared in the corresponding build.gradle ? If so, why?

Menu