java.lang.IllegalArgumentException

No view found for id 0x7f0f01a2 (com.example:id/viewpager) for fragment PublicChatFragment{3a7eb01 #1 id=0x7f0f01a2 android:switcher:2131689890:0}

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web224

  • via Stack Overflow by BenjaminButton
    ,
  • Stack trace

    • java.lang.IllegalArgumentException: No view found for id 0x7f0f01a2 (com.example:id/viewpager) for fragment PublicChatFragment{3a7eb01 #1 id=0x7f0f01a2 android:switcher:2131689890:0} at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1098) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1286) at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:758) at android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1632) at android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:637) at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:143) at android.support.v4.view.ViewPager.populate(ViewPager.java:1237) at android.support.v4.view.ViewPager.populate(ViewPager.java:1085) at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1611) at android.view.View.measure(View.java:18834) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5953) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.support.v7.widget.CardView.onMeasure(CardView.java:211) at android.view.View.measure(View.java:18834) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5953) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465) at android.widget.LinearLayout.measureVertical(LinearLayout.java:748) at android.widget.LinearLayout.onMeasure(LinearLayout.java:630) at android.view.View.measure(View.java:18834) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5953) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:18834) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2131) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1237) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1474) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1125) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6100) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) at android.view.Choreographer.doCallbacks(Choreographer.java:670) at android.view.Choreographer.doFrame(Choreographer.java:606) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5525) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Indri YunitaIndri Yunita
    4 times, last one
    filpgamefilpgame
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    ruberube
    5 times, last one
    Unknown visitor
    Unknown visitorOnce,
    24 more bugmates