TLDR Annotation processing fails with kapt `./grad...
# android
u
TLDR Annotation processing fails with kapt
./gradlew clean test assemble
->
./gradlew clean && ./gradlew test && ./gradlew assemble
-> I am switching annotation processing to kapt. Everything works fine in android studio but the annotation processing fails on jenkins. All I can see is
Task :app:compileDebugJavaWithJavac FAILED
followed by
error: cannot find symbol
in all dagger components. Jenkins pipeline has three steps. 1. Clean ->
./gradlew clean
2. Test ->
./gradlew test
3. Assemble ->
./gradlew assemble
Which is equivalent to
./gradlew clean && ./gradlew test && ./gradlew assemble
If instead of three separate steps if I run
./gradlew clean test assemble
I don’t get any errors So far I have enabled caching, but it seems to have no effect
Copy code
kapt {
    useBuildCache = true
}