Fragment HomeMainFragment is not an active fragment of FragmentManager FragmentManager

Crush 0 Reputation points
2024-01-20T05:06:30.7433333+00:00

Back traces starts. java.lang.IllegalArgumentException: Fragment HomeMainFragment{1c1ac1f} (b3bbebc2-f159-448d-81b8-f3818008f830) is not an active fragment of FragmentManager FragmentManager{528740d in HostCallbacks{712d49}}} at androidx.fragment.app.FragmentManager.setMaxLifecycle(FragmentManager.java:3303) at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:446) at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2404) at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2162) at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100) at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002) at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:524) at android.os.Handler.handleCallback(Handler.java:900) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loop(Looper.java:219) at android.app.ActivityThread.main(ActivityThread.java:8673) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109) Back traces ends.

My code snippet: enter image description here

How can this problem be solved?

Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
242 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZhoumingDuan-MSFT 9,160 Reputation points Microsoft Vendor
    2024-01-22T07:03:41.71+00:00

    @Crush,Thanks for posting in Q&A.

    Based on my researching, the issue is related to Android. And you can follow the link below to submit your issue to Android Community to get more help.

    https://developer.android.com/community Thanks for your kind understanding.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments