I have a project working with Data Binding:
buildFeatures {
dataBinding true
}
After I changed it to:
buildFeatures {
dataBinding true
viewBinding true
}
The gradle sync is fine, but I get an error in Data Binding classes when try to run the project:
:app:kaptHomologDebugKotlin
app/build/generated/source/kapt/homologDebug/br/com/test/DataBinderMapperImpl.java
cannot find symbol class ConfirmacaoFragmentBindingImpl
java.lang.reflect.InvocationTargetException (no error message)
Cannot find a setter for that accepts parameter type 'int'
I've already tried rebuild and invalidate cache
The documentation says "Because of these considerations, it is best in some cases to use both view binding and data binding in a project".
So it's possible to have both in a project