java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 4, found: 1 Pager id: com.zhipu.salehelper.referee:id/viewpager_inner Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.zhipu.salehelper.referee.adapter.HomeLooperAdapter

GitHub | maplejaw | 11 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

    notifyDataSetChanged会崩

    GitHub | 11 months ago | maplejaw
    java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 4, found: 1 Pager id: com.zhipu.salehelper.referee:id/viewpager_inner Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.zhipu.salehelper.referee.adapter.HomeLooperAdapter
  2. 0

    java.lang.IllegalStateException: Fragment already added

    GitHub | 2 years ago | siddharth96
    java.lang.IllegalStateException: Fragment already added: GenericProductListFragment{3147a7ad #2 id=0x7f0d026f}
  3. 0

    FragmentStatePagerAdapter stopped working after updating to ADT 22?

    Stack Overflow | 4 years ago | Ninjalan
    java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 11, found: 10 Pager id: com.######:id/pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.#####.######.#####$TabsAdapter
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Fragment Recursive entry to executePendingTransactions Error

    Stack Overflow | 4 years ago | user1340801
    java.lang.IllegalStateException: Recursive entry to executePendingTransactions
  6. 0

    "java.lang.IllegalStateException: Can't change tag of fragment" error when using ViewPager#setCurrentItem()

    Stack Overflow | 5 years ago | Joseph Jang
    java.lang.IllegalStateException: Can't change tag of fragment UseCaseGroupListFragment{4055f558 id=0x7f050034 android:switcher:2131034164:3}: was android:switcher:2131034164:3 now android:switcher:2131034164:4
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

    The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 4, found: 1 Pager id: com.zhipu.salehelper.referee:id/viewpager_inner Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.zhipu.salehelper.referee.adapter.HomeLooperAdapter

    at android.support.v4.view.ViewPager.populate()
  2. Android Support v4
    ViewPager.setCurrentItem
    1. android.support.v4.view.ViewPager.populate(ViewPager.java:1000)
    2. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:552)
    3. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:514)
    4. android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:495)
    4 frames
  3. com.zhipu.salehelper
    RollPagerView$TimeTaskHandler.handleMessage
    1. com.zhipu.salehelper.referee.widget.rollviewpager.RollPagerView$TimeTaskHandler.handleMessage(RollPagerView.java:133)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.os.Handler.dispatchMessage(Handler.java:111)
    2. android.os.Looper.loop(Looper.java:194)
    3. android.app.ActivityThread.main(ActivityThread.java:5549)
    3 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
    2 frames