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

GitHub | prashanthd | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 235#237250574

    GitHub | 9 months ago | prashanthd
    java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to android.app.Activity
  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 295#240344916

    GitHub | 8 months ago | KKJJ
    java.lang.ClassCastException: com.theclub.MainActivity cannot be cast to android.support.v7.app.AppCompatActivity
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.view.ContextThemeWrapper cannot be cast to android.app.Activity

      at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.prepareVideo()
    2. fm.jiecao.jcvideoplayer_lib
      JCVideoPlayerStandard.onClick
      1. fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.prepareVideo(JCVideoPlayer.java:281)
      2. fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.startButtonLogic(JCVideoPlayer.java:268)
      3. fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.onClick(JCVideoPlayer.java:205)
      4. fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard.onClick(JCVideoPlayerStandard.java:154)
      4 frames