ava.lang.IllegalArgumentException: No view found for id 0x7f0c0086 (rishabh.example.com.navigationdrawer:id/home_id) for fragment ProfileFragment{10c46e27 #1 id=0x7f0c0086}

Stack Overflow | R.K. GUPTA | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    App crashes when a opening a new item ( fragment) from the navigationDrawer (see code)?

    Stack Overflow | 8 months ago | R.K. GUPTA
    ava.lang.IllegalArgumentException: No view found for id 0x7f0c0086 (rishabh.example.com.navigationdrawer:id/home_id) for fragment ProfileFragment{10c46e27 #1 id=0x7f0c0086}

    Root Cause Analysis

    1. ava.lang.IllegalArgumentException

      No view found for id 0x7f0c0086 (rishabh.example.com.navigationdrawer:id/home_id) for fragment ProfileFragment{10c46e27 #1 id=0x7f0c0086}

      at android.support.v4.app.FragmentManagerImpl.moveToState()
    2. Android Support v4
      FragmentManagerImpl$1.run
      1. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1059)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
      3. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
      4. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
      5. android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
      5 frames
    3. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:135)
      4. android.app.ActivityThread.main(ActivityThread.java:5343)
      4 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
      2 frames