java.lang.IllegalStateException: ViewPager with adapter lii2.github.com.popupapp.MainActivity$MyPagerAdapter@316fcff requires a view id

  1. 0

    Put a viewpager in a popup window

    Stack Overflow | 4 months ago | Chi-Young Jeffrey Lii
    java.lang.IllegalStateException: ViewPager with adapter lii2.github.com.popupapp.MainActivity$MyPagerAdapter@316fcff requires a view id
  2. 0

    IllegalStateException after coming back to a FragmentActivity

    Stack Overflow | 5 years ago | Bilthon
    java.lang.IllegalStateException: Activity has been destroyed
  3. 0

    IllegalStateException with ActionBarSherlock 4

    Stack Overflow | 5 years ago | Mariux
    java.lang.IllegalStateException: Can't change tag of fragment FirstFragment{40545228 #0 id=0x7f040028 FirstFragment}: was FirstFragment now android:switcher:2130968616:0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    view pager with SQLite in android

    Stack Overflow | 1 year ago | Androiddv
    java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0, found: 1 Pager id: com.example.tazeen.classnkk:id/Image_ViewPagers Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.example.tazeen.classnkk.AllPosts_Page$MyPagerAdapter
  6. 0

    IllegalStateException after coming back to a FragmentActivity - QuestionInBox

    cweize.com | 11 months ago
    java.lang.IllegalStateException: Activity has been destroyed

  1. Ajeet 1 times, last 3 months ago
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    ViewPager with adapter lii2.github.com.popupapp.MainActivity$MyPagerAdapter@316fcff requires a view id

    at android.support.v4.app.FragmentPagerAdapter.startUpdate()
  2. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.app.FragmentPagerAdapter.startUpdate(FragmentPagerAdapter.java:81)
    2. android.support.v4.view.ViewPager.populate(ViewPager.java:1117)
    3. android.support.v4.view.ViewPager.populate(ViewPager.java:1085)
    4. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1611)
    4 frames
  3. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:18788)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    4. android.view.View.measure(View.java:18788)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    7. android.view.View.measure(View.java:18788)
    8. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2100)
    9. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1191)
    10. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1452)
    11. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
    12. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
    13. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    14. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    15. android.view.Choreographer.doFrame(Choreographer.java:606)
    16. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
    17. android.os.Handler.handleCallback(Handler.java:739)
    18. android.os.Handler.dispatchMessage(Handler.java:95)
    19. android.os.Looper.loop(Looper.java:148)
    20. android.app.ActivityThread.main(ActivityThread.java:5417)
    20 frames
  4. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  5. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames