I am integrating dagger in my project and I am having this issue.
I want to add jar dependencies instead of
`annotationProcessor "com.google.dagger:dagger-compiler:2.41"`
like below
annotationProcessor files('libs/dagger-compiler-2.41.jar') but when I compile, it gives me error
Execution failed for task ''.
dagger/spi/shaded/androidx/room/compiler/processing/javac/JavacBasicAnnotationProcessor Caused by: java.lang.NoClassDefFoundError: dagger/spi/shaded/androidx/room/compiler/processing/javac/JavacBasicAnnotationProcesso
It is working with other jar daggger dependency but not with AnnotationProcessor. When I use annotationProcessor "com.google.dagger:dagger-compiler:2.41" everything works fine.
implementation files('libs/javax.inject-1.jar')
implementation files('libs/dagger-2.41.jar')
implementation files('libs/dagger-producers-2.41.jar')
After so much of research and hit and trial and lot of trying I was able to integrate daggger to my Project in gradle as well as in android MK.
For Gradle : Worked for both API 28 and 30