我当初也被这问题绕晕过…其实Fragment本身是Android框架组件,它没单独的版本号,但它的行为和API会随着AndroidSDK版本升级而变化,比如Android0加了setReorderingAllowed(true),Android9开始限制后台启动Activity间接影响Fragment事务,AndroidXFragmentx还重构了SavedStateHandle机制;所以真要问哪个版本,不如看你是用android.app.Fragment(已废弃)、android.support.vFragment(老support包)还是androidx.fragment.app.Fragment(当前标准),后者才是正解!