gpt4 book ai didi

androidx getFragmentManager() 已被弃用

转载 作者:行者123 更新时间:2023-12-03 13:27:32 47 4
gpt4 key购买 nike

收到 androidx.fragment.app.Fragment 的弃用警告:

warning: [deprecation] getFragmentManager() in Fragment has been deprecated.



该怎么办?

最佳答案

版本来源1.2.0更详细地解释它:

This has been removed in favor of getParentFragmentManager(), which throws an IllegalStateException if the FragmentManager is null. Check if isAdded() returns false to determine if the FragmentManager is null.

关于androidx getFragmentManager() 已被弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60050865/

47 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com