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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by user655561
, 1 year ago
No view found for id 0x7f0f01a2 (com.example:id/viewpager) for fragment PublicChatFragment{3a7eb01 #1 id=0x7f0f01a2 android:switcher:2131689890:0}
via Stack Overflow by Patel Pinkal
, 1 year ago
No view found for id 0x7f0e00d5 (com.example.page:id/dialogViewpager) for fragment OneFragment{eb2a3cc #1 id=0x7f0e00d5 android:switcher:2131624149:0}
via Stack Overflow by Mark Dylan B Mercado
, 3 months ago
No view found for id 0x7f0c0071 (com.gawapa.exampleproject:id/container) for fragment Tab2{41eb5380 #1 id=0x7f0c0071 android:switcher:2131492977:1}
via Stack Overflow by TacticalBacon
, 1 year ago
No view found for id 0x7f0c0077 (th.ac.sd.drawertest2:id/layout_sms) for fragment SMSFragment{4b506d #0 id=0x7f0c0077}
via Stack Overflow by Vishwanth
, 2 years ago
No view found for id 0x7f0c006b (com.example.edvenswa.collabevents:id/sideFragmentHolder) for fragment MyEvents{289c10 #0 id=0x7f0c006b}
via Stack Overflow by A6S
, 1 year ago
No view found for id 0x7f0d0083 (comtec.uks.de.jccapp:id/fragment_container) for fragment GradesFragment{1e6f8ce #0 id=0x7f0d0083}
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.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.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 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)

Users with the same issue

4 times, 7 months ago
2 times, 10 months ago
5 times, 1 year ago
6 times, 1 year ago
2 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.