Hey Everybody, I’m facing a peculiar issue, and a...
# android
n
Hey Everybody, I’m facing a peculiar issue, and any help would be greatly appreciated. I have a simple android project setup with an app, and an annotation processor module. The purpose of the annotation processor is to generate repository implementation from an interface which is declared in the app module. For the time being the AP generates an implementation of the repositry and a DAO interface. The project uses dagger for DI and contains a module that binds the repository to the interface plus the implementation of the DAO interface which is implemented in the app module (the module is not generated). All generated code and the repository interface is written in kotlin. KotlinPoet is used to write the kotlin files form the AP. kapt is used for dagger2 and my AP. When I build the project I get a “cannot find symbol error” for the generated dao interface (but not for it’s import statement) and there are not errors around the generated repository. Now if I go to android studio and remove the dao interface import and use quick fix for the imports and rebuild I don’t set the error, but it’s still failing when running the build from command line. My suspicion the issue is around stub generation when executing dagger but I can’t be sure. Any thoughts ?