IllegalStateException: Can't change tag of fragment was android:switcher now android:switcher
问题 My activity uses TabLayout + ViewPager . The number of tabs and pages here are dynamic depending on the data fetch from the server. The crash are reported via Crashlytics, I'm not able to replicate it. My Activity code: @Override protected void onCreate(Bundle savedInstanceState) { boolean isAppRestarting = PrefUtils.getBoolean("app_restarting", false); if (isAppRestarting) { super.onCreate(null); this.savedInstanceState = null; } else { super.onCreate(savedInstanceState); this