Very often, after making a change to a `ViewModel`...
# android
m
Very often, after making a change to a
ViewModel
class, I get bizarre “error: cannot find symbol” compilation errors (in corresponding generated java class for ViewModel) where the only way forward is to do a clean build, and then everything compiles as expected. Is there some gradle setting I can tweak to avoid this?
Copy code
Execution failed for task ':mymodule:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
   > java.lang.reflect.InvocationTargetException (no error message)
Actually, not just 
ViewModel
 classes, pretty much any class when I change any function or property signature.