java.lang.ClassCastException

com.theclub.MainActivity cannot be cast to android.support.v7.app.AppCompatActivity

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19028

  • via GitHub by KKJJ
    , 11 months ago
    com.theclub.MainActivity cannot be cast to android.support.v7.app.AppCompatActivity
  • via GitHub by rivaldi8
    , 1 year ago
    org.gnucash.android.ui.settings.SettingsActivity cannot be cast to android.support.v7.app.AppCompatActivity
  • com.abdralabs.talksee.MyApplication cannot be cast to android.support.v7.app.AppCompatActivity
  • Stack trace

    • java.lang.ClassCastException: com.theclub.MainActivity cannot be cast to android.support.v7.app.AppCompatActivity at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.hideSupportActionBar(JCVideoPlayer.java:805) at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.startWindowFullscreen(JCVideoPlayer.java:575) at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.onClick(JCVideoPlayer.java:197) at fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard.onClick(JCVideoPlayerStandard.java:171) at android.view.View.performClick(View.java:4476) at android.view.View$PerformClick.run(View.java:18822) at android.os.Handler.handleCallback(Handler.java:808) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:5551) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:914) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:730) at dalvik.system.NativeStart.main(Native Method)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.