java.lang.NoClassDefFoundError: android.support.v7.media.MediaRouter$GlobalMediaRouter$1

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

java.lang.NoClassDefFoundError: android.support.v7.media.MediaRouter$GlobalMediaRouter$1
at android.support.v7.media.MediaRouter$GlobalMediaRouter.(MediaRouter.java:1628)
at android.support.v7.media.MediaRouter.getInstance(MediaRouter.java:246)
at com.google.android.libraries.cast.companionlibrary.cast.BaseCastManager.(BaseCastManager.java:189)
at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.(VideoCastManager.java:196)
at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.initialize(VideoCastManager.java:223)
at com.google.sample.cast.refplayer.CastApplication.onCreate(CastApplication.java:43)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4280)
at android.app.ActivityThread.access$1400(ActivityThread.java:143)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1301)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4950)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)

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.

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