java.lang.ClassCastException: com.theclub.MainActivity cannot be cast to android.support.v7.app.AppCompatActivity

GitHub | KKJJ | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 295#240344916

    GitHub | 8 months ago | KKJJ
    java.lang.ClassCastException: com.theclub.MainActivity cannot be cast to android.support.v7.app.AppCompatActivity
  2. 0

    java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to android.app.Activity

    GitHub | 10 months ago | keepfit
    java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to android.app.Activity
  3. 0

    GitHub comment 235#237250574

    GitHub | 9 months ago | prashanthd
    java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to android.app.Activity
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

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

      at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.hideSupportActionBar()
    2. fm.jiecao.jcvideoplayer_lib
      JCVideoPlayerStandard.onClick
      1. fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.hideSupportActionBar(JCVideoPlayer.java:805)
      2. fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.startWindowFullscreen(JCVideoPlayer.java:575)
      3. fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.onClick(JCVideoPlayer.java:197)
      4. fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard.onClick(JCVideoPlayerStandard.java:171)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:4476)
      2. android.view.View$PerformClick.run(View.java:18822)
      3. android.os.Handler.handleCallback(Handler.java:808)
      4. android.os.Handler.dispatchMessage(Handler.java:103)
      5. android.os.Looper.loop(Looper.java:193)
      6. android.app.ActivityThread.main(ActivityThread.java:5551)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:914)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:730)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame