java.lang.IllegalStateException

The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0, found: 2 Pager id: com.formfilling:id/view_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.formfilling.FormContentViewFragment$FormContentViewAdapter


Solutions on the web16372

Solution icon of stackoverflow
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0, found: 2 Pager id: com.formfilling:id/view_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.formfilling.FormContentViewFragment$FormContentViewAdapter

Solution icon of stackoverflow
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0, found: 2 Pager id: com.formfilling:id/view_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.formfilling.FormContentViewFragment$FormContentViewAdapter

Solution icon of web
via issuehub.io by Unknown author, 1 year ago
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 14, found: 0 Pager id: com.jodeals:id/view_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.jodeals.fragment.offers.MainFragment$ViewPagerAdapter

Solution icon of stackoverflow
via Stack Overflow by Serg
, 4 months ago
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0, found: 10 Pager id: ######:id/view_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class ##.SlideView.ViewPagerAdapter

Solution icon of web
via issuehub.io by Unknown author, 1 year ago
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 14, found: 0 Pager id: com.jodeals:id/view_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.jodeals.fragment.offers.MainFragment$ViewPagerAdapter

Solution icon of stackoverflow
via Stack Overflow by James A
, 1 year ago
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0, found: 4 Pager id: sobmad.com.gamingreminder:id/view_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class sobmad.com.gamingreminder.GamePage.CustomSwipeAdapter

Solution icon of github
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 1, found: 0 Pager id: au.com.codeka.warworlds:id/pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class au.com.codeka.warworlds.game.build.k

Solution icon of github
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 1300, found: 1200 Pager id: com.louie.luntonghui:id/view_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class cn.lightsky.infiniteindicator.indicator.RecyleAdapter

Solution icon of github
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0, found: 2 Pager id: st.alr.homA:id/pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class st.alr.homA.MainActivity$RoomPagerAdapter

Solution icon of stackoverflow
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 1, found: 2 Pager id: /pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class ScreenSlidePagerAdapter

Stack trace

  • java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0, found: 2 Pager id: com.formfilling:id/view_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.formfilling.FormContentViewFragment$FormContentViewAdapter at android.support.v4.view.ViewPager.populate(ViewPager.java:1171) at android.support.v4.view.ViewPager.populate(ViewPager.java:1120) at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1646)

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

4 times, 6 months ago
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
10 more bugmates