I migrated yesterday my project to AndroidX. All xml layout files were correctly adjusted according to the migration rules ( https://developer.android.com/jetpack/androidx/migrate) .
Even so, I have tremendous amount of errors from databinding. I am importing different objects in the data section of xml layout files. But in the auto-generated dabinding classes, it does not recognize the sub-packages (e.g. I import com.myproject.app.Calibration.myViewModel; in CalibrationActivityBinding.java it does not recognize the com.myproject.app.Calibration subpackage. The same code used to work perfectly before migration to AndroidX.
I read this article Androidx and databinding but did not help me in solving my issues.
Has anybody encountered the same issues?