FragmentManager and androidx FragmentManager
问题 I'm trying to setup in my app that is using androidX. My problem is that when I try to work with PlaceAutocompleteFragment I get errors because it is a fragment from android.app.fragment and my parent fragment is an androidx fragment: androidx.fragment.app.Fragment so it uses a androidx.fragment.app.FragmentManager instead of a android.app.FragmentManager . How can I work with "old" fragments in androidX? 回答1: Add this to dependencies: implementation 'androidx.appcompat:appcompat:1.0.2' . Add