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 Chi-Young Jeffrey Lii
, 1 year ago
ViewPager with adapter lii2.github.com.popupapp.MainActivity$MyPagerAdapter@316fcff requires a view id
via Stack Overflow by Denis Kuznetsov
, 5 months ago
ViewPager with adapter com.company.user.blabla.fragments.HomeFragment$PagerAdapter@ca3cef6 requires a view id
via GitHub by nex3z
, 4 months ago
ViewPager with adapter test.fragmentpagerdemo.MainActivity$NumberFragmentPagerAdapter@23052a8 requires a view id
java.lang.IllegalStateException: ViewPager with adapter lii2.github.com.popupapp.MainActivity$MyPagerAdapter@316fcff requires a view id	at android.support.v4.app.FragmentPagerAdapter.startUpdate(FragmentPagerAdapter.java:81)	at android.support.v4.view.ViewPager.populate(ViewPager.java:1117)	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:18788)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)	at android.view.View.measure(View.java:18788)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)	at android.view.View.measure(View.java:18788)	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2100)	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1191)	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1452)	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)	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:5417)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)