I'm trying to migrate my app to AndroidX, following the official doc. I run the refactor option: migrate to AndroidX.
At first I had errors that has been resolved by restarting and cleaning my project. I then had an issue STRING_TOO_LARGE
(cf. this Stack Overflow question) that I resolved by downgrading my gradle build tools to 3.1.3.
But now I'm struggling with databinding. The migration tool replaced all my
import android.databinding.**
by
import androidx.databinding.**
but I have the error message
cannot resolve androidx.databinding.
Is their any things I should do to get it working?
I tried to get back to the old databinding
by setting back
import android.databinding.**
Instead of the androidx
one but I then have an error with LiveData
used inside xml layout saying
cannot find the setter for attribute with parameter type androidx.lifecycle.MutableLiveData.