I need your help... I work on it until 3 days. My app is working with fragments. One of these fragments has to display a map from the Google Maps V2 api for Android.
You can try adding the MapFragment inside of a FragmentContainerView from androidx Fragment package:
FragmentContainerView
androidx
Fragment
implementation "androidx.fragment:fragment:$1.2.4"