Android 2.3.x を搭載したデバイスで Chromecast 統合がクラッシュする
これはおそらく、デバイス ベンダーによってオーバーライドされた一部のスタイル属性と、キャスト SDK / メディア ルーターでの Holo スタイルへの参照との組み合わせが原因です…</p>
Samsung Galaxy S2 および HTC Wildfire 510 SE でテスト済み。あなたはそのようなことを経験し、それを修正する方法を知っていますか?
01-14 23:49:32.343: E/AndroidRuntime(7298): FATAL EXCEPTION: main
01-14 23:49:32.343: E/AndroidRuntime(7298): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mycompany.androidclient/com.mycompany.androidclient.FavoritesActivity}: android.view.InflateException: Binary XML file line #39: Error inflating class android.support.v7.app.MediaRouteButton
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.os.Handler.dispatchMessage(Handler.java:99)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.os.Looper.loop(Looper.java:130)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.app.ActivityThread.main(ActivityThread.java:3691)
01-14 23:49:32.343: E/AndroidRuntime(7298): at java.lang.reflect.Method.invokeNative(Native Method)
01-14 23:49:32.343: E/AndroidRuntime(7298): at java.lang.reflect.Method.invoke(Method.java:507)
01-14 23:49:32.343: E/AndroidRuntime(7298): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
01-14 23:49:32.343: E/AndroidRuntime(7298): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
01-14 23:49:32.343: E/AndroidRuntime(7298): at dalvik.system.NativeStart.main(Native Method)
01-14 23:49:32.343: E/AndroidRuntime(7298): Caused by: android.view.InflateException: Binary XML file line #39: Error inflating class android.support.v7.app.MediaRouteButton
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:707)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.LayoutInflater.rInflate(LayoutInflater.java:619)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
01-14 23:49:32.343: E/AndroidRuntime(7298): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:215)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.app.Activity.setContentView(Activity.java:1663)
01-14 23:49:32.343: E/AndroidRuntime(7298): at com.mycompany.androidclient.FavoritesActivity.onCreateInternal(FavoritesActivity.java:170)
01-14 23:49:32.343: E/AndroidRuntime(7298): at com.mycompany.androidclient.mycompanyComActivity.onCreate(mycompanyComActivity.java:100)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
01-14 23:49:32.343: E/AndroidRuntime(7298): ... 11 more
01-14 23:49:32.343: E/AndroidRuntime(7298): Caused by: java.lang.reflect.InvocationTargetException
01-14 23:49:32.343: E/AndroidRuntime(7298): at java.lang.reflect.Constructor.constructNative(Native Method)
01-14 23:49:32.343: E/AndroidRuntime(7298): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
01-14 23:49:32.343: E/AndroidRuntime(7298): ... 26 more
01-14 23:49:32.343: E/AndroidRuntime(7298): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f01000c a=3}
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.content.res.Resources.loadDrawable(Resources.java:1907)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.content.res.TypedArray.getDrawable(TypedArray.java:653)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.view.View.<init>(View.java:1985)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.support.v7.app.MediaRouteButton.<init>(MediaRouteButton.java:121)
01-14 23:49:32.343: E/AndroidRuntime(7298): at android.support.v7.app.MediaRouteButton.<init>(MediaRouteButton.java:117)
01-14 23:49:32.343: E/AndroidRuntime(7298): ... 29 more