FragmentManager 中缺少 FragmentFactory class 和 getFragmentFactory() 方法

Missing FragmentFactory class and getFragmentFactory() method in FragmentManager

我正在尝试为我的应用实施分层多屏设置。我正在关注 "Organize your settings" guide, which contains an example implementation of a function that should construct a new Fragment instance using the FragmentFactory class:

val fragment = supportFragmentManager.fragmentFactory.instantiate(
        classLoader,
        pref.fragment,
        args)

但是,IDE 无法解析此 class 或 FragmentManagerfragmentFactory 属性。

我正在使用以下支持库:

implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
implementation 'androidx.preference:preference:1.0.0'
implementation 'androidx.fragment:fragment-ktx:1.0.0'

该指南是否可能提到了尚未稳定的功能?

原来 class 在 androidx.fragment since version 1.1.0 中可用。目前它仍处于 alpha 阶段,我只使用稳定的 lib 版本进行生产。