Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by KKJJ
, 1 year ago
com.theclub.MainActivity cannot be cast to android.support.v7.app.AppCompatActivity
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)