It was a working project in Android Studio, and today when I opened project it is showing below error for multiple BindingImpl classes. There are two types of error for every BindingImpl class.
The 1st one:
error: cannot find symbol
public class ActivityMainBindingImpl extends ActivityMainBinding {
^
symbol: class ActivityMainBinding
The 2nd one:
error: IncludedLayouts has protected access in ViewDataBinding
private static final androidx.databinding.ViewDataBinding.IncludedLayouts sIncludes;
^
another error in last:
Execution failed for task ':app:kaptProdDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
> java.lang.reflect.InvocationTargetException (no error message)
What I have tried:
Clean & Rebuild
Invalidate Cache & Restart