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

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by prashanthd
, 1 year ago
android.view.ContextThemeWrapper cannot be cast to android.app.Activity
via GitHub by keepfit
, 2 months ago
android.view.ContextThemeWrapper cannot be cast to android.app.Activity
via GitHub by keepfit
, 1 year ago
android.view.ContextThemeWrapper cannot be cast to android.app.Activity
via GitHub by e16din
, 1 year ago
android.view.ContextThemeWrapper cannot be cast to android.app.Activity
java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to android.app.Activity
at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.prepareVideo(JCVideoPlayer.java:281)
at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.startButtonLogic(JCVideoPlayer.java:268)
at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.onClick(JCVideoPlayer.java:205)
at fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard.onClick(JCVideoPlayerStandard.java:154)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.