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.crushmatic.pro:id/viewPager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.fresh.slidingmenu.MatChedUserProfile$MyViewPagerAdapter

Stack Overflow | Shan PLT | 3 months ago
  1. 0

    The application's PagerAdapter changed the adapter's contents

    Stack Overflow | 3 months ago | Shan PLT
    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.crushmatic.pro:id/viewPager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.fresh.slidingmenu.MatChedUserProfile$MyViewPagerAdapter
  2. 0

    IllegalStateException in BuildActivity's PagerAdapter

    GitHub | 2 years ago | codeka
    java.lang.IllegalStateException: 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
  3. 0

    java.lang.IllegalStateException: Can't change tag of fragment

    Stack Overflow | 4 years ago | jonney
    java.lang.IllegalStateException: Can't change tag of fragment SubscribedFragment{41157420 id=0x7f070005 android:switcher:2131165189:0}: was android:switcher:2131165189:0 now android:switcher:2131165189:1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IllegalStateException with PagerAdapter

    Stack Overflow | 3 years ago | thisiscrazy4
    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.##.##.android:id/item_list_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.##.contacts.quickcontact.QuickContactActivity$ViewPagerAdapter
  6. 0

    Android viewpager notifyDataSetChanged causes IllegalStateException

    Stack Overflow | 2 years ago | nmxprime
    java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 5, found: 6 Pager id: com.example.upnpclient/myviewpager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.example.upnpclient.MyPagerAdapter

  1. Indri Yunita 2 times, last 1 week ago
  2. 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

    The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0, found: 1 Pager id: com.crushmatic.pro:id/viewPager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.fresh.slidingmenu.MatChedUserProfile$MyViewPagerAdapter

    at android.support.v4.view.ViewPager.populate()
  2. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.view.ViewPager.populate(ViewPager.java:1000)
    2. android.support.v4.view.ViewPager.populate(ViewPager.java:952)
    3. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1474)
    3 frames
  3. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:16677)
    2. android.widget.LinearLayout.measureVertical(LinearLayout.java:847)
    3. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    4. android.view.View.measure(View.java:16677)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5286)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    7. android.view.View.measure(View.java:16677)
    8. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5286)
    9. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    10. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    11. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    12. android.view.View.measure(View.java:16677)
    13. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5286)
    14. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    14 frames
  4. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2421)
    1 frame
  5. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:16677)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1927)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1119)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1301)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1006)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5652)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:574)
    9. android.view.Choreographer.doFrame(Choreographer.java:544)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
    11. android.os.Handler.handleCallback(Handler.java:733)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:136)
    14. android.app.ActivityThread.main(ActivityThread.java:5433)
    14 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
    2 frames
  8. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame