Reputation: 473
I have been looking at the androidx.fragment.app.Fragment documentation and there is this method getParentFragmentManager()
. However, in my Android project it doesn't recognize it. I am using kotlin and it says: Unresolved reference: getParentFragmentManager. Why does it happen?
Upvotes: 0
Views: 682
Reputation: 386
Update your fragment ktx version to 1.2.5 and use parentFragmentManager
like property
Upvotes: 1