Posts

Showing posts from March 16, 2019

java.lang.ClassCastException: MainActivity cannot be cast?

Image
0 Here's the full log 11-16 04:13:35.810 3555-3555/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.steven.test, PID: 3555 java.lang.ClassCastException: com.steven.test.MainActivity cannot be cast to com.steven.test.providers.priceticker.currencylist.AllCurrencyListFragment$FavoritesListUpdater at com.steven.test.providers.priceticker.currencylist.AllCurrencyListFragment.onAttach(AllCurrencyListFragment.java:182) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1372) at android.support.v4.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1188) at android.support.v4.app.FragmentTransition.calculateFragments(FragmentTransition.java:1071) at android.support.v4.app.FragmentTransition.startTransitions(FragmentTransition.java:115) at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2380) at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentMan...