I've been working on updating out project which contains DataBinding, to the new AndroidX packages. There were a number of issues with misuse of the DataBinding SafeUnbox methods, but these are resolved and I am currently prevented from building because AndroidX does not seem to support the requireActivity
, requireContext
and requireFragmentManager
methods.
I have android.enableJetifier=true
and android.useAndroidX=true
in my gradle properties and have fixed minor issues it presented, but changing from android.support.v4.app.Fragment
has not been required (thankfully - because libraries like trello.rxlifecycle then break)
So even though the Fragment and Activity classes/imports are unchanged, I can no longer use the require methods. Is there a fix for this?