IllegalStateException: The application's PagerAdapter changed the adapter's content without calling PagerAdapter#notifyDataSetChanged
问题 I\'m using the ViewPager example with ActionBar tabs taken from the Android documentation here. Unfortunately, as soon as I call the addTab method, the application crashes with the following exception: IllegalStateException: The application\'s PagerAdapter changed the adapter\'s content without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count 0, found 1. This is the FragmentPagerAdapter code: public static class TabsAdapter extends FragmentPagerAdapter implements