java.lang.ClassCastException: com.example.manel.criminalintent.CrimePagerActivity cannot be cast to android.support.v7.app.AppCompatActivity

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • java.lang.ClassCastException: com.example.manel.criminalintent.CrimePagerActivity cannot be cast to android.support.v7.app.AppCompatActivity at com.example.manel.criminalintent.CrimeFragment.onCreateView(CrimeFragment.java:64) at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248) at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613) at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:570) at android.support.v4.app.FragmentStatePagerAdapter.finishUpdate(FragmentStatePagerAdapter.java:163) at android.support.v4.view.ViewPager.populate(ViewPager.java:1106) at android.support.v4.view.ViewPager.populate(ViewPager.java:952) at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1474) at android.view.View.measure(View.java:16566) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5145) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
No Bugmate found.