If there are any errors during compilation, the databinding classes arent generated - and as such, I get a ton of errors like this:
symbol: class DataBindingComponent
location: class TrainingActivityCompletedSetBinding
e: S:\ProjectLocation\TrainingActivityCompletedSetBinding.java:60: error: cannot find symbol
@Nullable DataBindingComponent component)
The problem is that the compilation error isnt related to databinding at all, and as such I have no idea whats actually causing it - and I have to manually dig into the files to find the issue.
In the example above, I just omitted @Inject
from a constructor that requires it. Itd be lovely to see the error message from Dagger in this case so that I can find it immediately, rather than having to dig into all the projects classes to find it manually.
Any help would be greatly appreciated!
Both Android Studio & Databinding is on version 3.1.3 currently, the error has been there since 3.0 at least.
Using Kotlin V1.2.41, and kapt for generating code.
Tried increasing the max number of errors the compiler would show, unfortunately no difference.
Temporarily, a workaround is to simply disable databinding V2: android.databinding.enableV2=true
in gradle.properties. Still open to a better solution though.