Lollipop - executePendingTransactions 的递归入口

Lollipop - Recursive entry to executePendingTransactions

我在尝试调用 fragmentManager.executePendingTransactions() 方法后遇到 "Recursive entry to executePendingTransactions" 错误。

有人有解决办法吗?

这仅发生在 android 5.1 上,在其他平台上它按预期工作。 请让我知道,我还应该给你什么源代码来理解这个问题

非常感谢=)

在我的例子中,它只在 5.1 上重现。因为 onAttach(Context context) 方法没有调用 Android API < 23。所以我在那个方法中初始化了连接,当我尝试打开新片段时,它不能