How can I clear the kapt cache? I use room and it ...
# announcements
p
How can I clear the kapt cache? I use room and it always generates a dao class that was from another branch. When I delete the generated class it generates it again and then fails the build beause it references classes that do not exist.
w
You can run kapt task with
--rerun-tasks
flag, perhaps?
p
Thanks I wiped everything and will try that the next time 🙂
m
I usually run
clean
paired with
--no-build-cache
. But I think
--rerun-tasks
flag could work (thanks @wasyl, I did not know about that flag before)
it was closed a while ago, but still happens occasionaly