you can apply kapt and ksp at the same project, so you can use kapt to use Dagger/Hilt, however since there is no guarantee on the ordering of execution of the ksp and kapt task, therefore if you have cross dependency on the code generated by ksp and kapt, you might run into issues.