I'm confronting a weird issue using gradlew(4.10.2) + dagger(2.18).
The problem is when I call:
./gradlew :app:compileDebugAndroidTestKotlin 
The build fails with:
Task :Common:compileDebugJavaWithJavac FAILED
/CommonModule_ProvidesGsonFactory.java:6: error: package javax.annotation.processing does not exist import javax.annotation.processing.Generated;
/CommonModule_ProvidesGsonFactory.java:8: error: cannot find symbol @Generated(
But if I run the task from Android Studio, the task succeed and the @Generated is not present in the dagger generated class.
Do you have some clue to avoid the @Generated annotation using ./gradlew?
 
     
     
     
     
     
     
    