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 web

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: 19 Pager id: com.up.student.service.system:id/room_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.up.student.service.system.ClassRoom$MyAdapter

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
via Stack Overflow by Serg
, 6 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 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 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 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 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 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 stackoverflow
via Stack Overflow by user2239842
, 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: com.example.offers:id/pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.example.adapters.ImageAdapter

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

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