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

GitHub | e16din | 6 months ago
  1. 0

    GitHub comment 191#235949465

    GitHub | 6 months ago | e16din
    java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to android.app.Activity
  2. 0

    Show error

    GitHub | 10 months ago | tellfa
    android.view.InflateException: Binary XML file line #34: Error inflating class me.james.biuedittext.BiuEditText
  3. 0

    android:theme tag is not allowed in layout file.

    GitHub | 5 months ago | Dharmaraj
    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

  5. 0

    在dialog中使用自定义布局报错

    GitHub | 1 year ago | wizardmly
    android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class <unknown>
  6. 0

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

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

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    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
      JCVideoPlayer$1.onClick
      1. fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.prepareVideo(JCVideoPlayer.java:294)
      2. fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.startButtonLogic(JCVideoPlayer.java:281)
      3. fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.access$000(JCVideoPlayer.java:38)
      4. fm.jiecao.jcvideoplayer_lib.JCVideoPlayer$1.onClick(JCVideoPlayer.java:209)
      4 frames
    3. Android
      AlertController$ButtonHandler.handleMessage
      1. com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:164)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:135)
      3. android.app.ActivityThread.main(ActivityThread.java:5289)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
      2 frames