Dagger + kapt - package error does not exist

trying to use dagger with kotlin in my AS project and cannot compile the project because of errors:

Error:(99, 20) error: cannot find symbol class NonExistentClass
Error:(74, 13) error: package error does not exist

does anyone know the solution to this? I’d hate rewriting the code in Java again.