{"action":"created","issue":{"url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/201","labels_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/201/comments","events_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/201/events","html_url":"https://github.com/googlecast/CastCompanionLibrary-android/issues/201","id":102089445,"number":201,"title":"java.lang.NoClassDefFoundError: android.support.v7.mediarouter.R$string","user":{"login":"iceteahh","id":5756363,"avatar_url":"https://avatars.githubusercontent.com/u/5756363?v=3","gravatar_id":"","url":"https://api.github.com/users/iceteahh","html_url":"https://github.com/iceteahh","followers_url":"https://api.github.com/users/iceteahh/followers","following_url":"https://api.github.com/users/iceteahh/following{/other_user}","gists_url":"https://api.github.com/users/iceteahh/gists{/gist_id}","starred_url":"https://api.github.com/users/iceteahh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iceteahh/subscriptions","organizations_url":"https://api.github.com/users/iceteahh/orgs","repos_url":"https://api.github.com/users/iceteahh/repos","events_url":"https://api.github.com/users/iceteahh/events{/privacy}","received_events_url":"https://api.github.com/users/iceteahh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-20T08:30:04Z","updated_at":"2015-08-20T09:59:47Z","closed_at":null,"body":"My application using your library version 2.3.1. When it run on Samsung galaxy s6 it is OK. But when i run it on Nexus 7 2017, Samsung Note 2 it crashed, logcat:\r\n```\r\n08-20 15:12:15.929    6866-6866/com.flix.apps.android E/GooglePlayServicesUtil﹕ The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.\r\n08-20 15:12:15.959    6866-6866/com.flix.apps.android E/AndroidRuntime﹕ FATAL EXCEPTION: main\r\n    Process: com.flix.apps.android, PID: 6866\r\n    java.lang.NoClassDefFoundError: android.support.v7.mediarouter.R$string\r\n            at android.support.v7.media.SystemMediaRouteProvider$JellybeanImpl.<init>(SystemMediaRouteProvider.java:256)\r\n            at android.support.v7.media.SystemMediaRouteProvider$JellybeanMr1Impl.<init>(SystemMediaRouteProvider.java:716)\r\n            at android.support.v7.media.SystemMediaRouteProvider$JellybeanMr2Impl.<init>(SystemMediaRouteProvider.java:788)\r\n            at android.support.v7.media.SystemMediaRouteProvider.obtain(SystemMediaRouteProvider.java:53)\r\n            at android.support.v7.media.MediaRouter$GlobalMediaRouter.<init>(MediaRouter.java:1652)\r\n            at android.support.v7.media.MediaRouter.getInstance(MediaRouter.java:246)\r\n            at com.google.android.libraries.cast.companionlibrary.cast.BaseCastManager.<init>(BaseCastManager.java:189)\r\n            at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.<init>(VideoCastManager.java:224)\r\n            at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.initialize(VideoCastManager.java:250)\r\n            at com.flix.apps.android.FlixApplication.onCreate(FlixApplication.java:53)\r\n            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)\r\n            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4328)\r\n            at android.app.ActivityThread.access$1500(ActivityThread.java:135)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:136)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5001)\r\n            at java.lang.reflect.Method.invokeNative(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:515)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)\r\n            at dalvik.system.NativeStart.main(Native Method)\r\n```\r\n`at com.flix.apps.android.FlixApplication.onCreate(FlixApplication.java:53)` is:\r\n```\r\nVideoCastManager.\r\n                initialize(this, CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID, null, null)\r\n                .enableFeatures(VideoCastManager.FEATURE_NOTIFICATION |\r\n                        VideoCastManager.FEATURE_LOCKSCREEN |\r\n                        VideoCastManager.FEATURE_WIFI_RECONNECT |\r\n                        VideoCastManager.FEATURE_CAPTIONS_PREFERENCE |\r\n                        VideoCastManager.FEATURE_DEBUGGING);\r\n```\r\n\r\nI followed your document and used `MediaRouteButton` like this:\r\n\r\n```\r\n<android.support.v7.app.MediaRouteButton\r\nandroid:id=\"@+id/media_route_button\"\r\nandroid:layout_width=\"wrap_content\"\r\nandroid:layout_height=\"wrap_content\"\r\nandroid:mediaRouteTypes=\"user\" />\r\n```"},"comment":{"url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/comments/132962373","html_url":"https://github.com/googlecast/CastCompanionLibrary-android/issues/201#issuecomment-132962373","issue_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/201","id":132962373,"user":{"login":"iceteahh","id":5756363,"avatar_url":"https://avatars.githubusercontent.com/u/5756363?v=3","gravatar_id":"","url":"https://api.github.com/users/iceteahh","html_url":"https://github.com/iceteahh","followers_url":"https://api.github.com/users/iceteahh/followers","following_url":"https://api.github.com/users/iceteahh/following{/other_user}","gists_url":"https://api.github.com/users/iceteahh/gists{/gist_id}","starred_url":"https://api.github.com/users/iceteahh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iceteahh/subscriptions","organizations_url":"https://api.github.com/users/iceteahh/orgs","repos_url":"https://api.github.com/users/iceteahh/repos","events_url":"https://api.github.com/users/iceteahh/events{/privacy}","received_events_url":"https://api.github.com/users/iceteahh/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T09:59:47Z","updated_at":"2015-08-20T09:59:47Z","body":"Sorry that was my mistake, i have used `multiDexEnabled = true` in my build config. Please close it."}}