Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in styles.xml in android-support-v7-mediarouter

Tags:

android

xml

Following is the styles.xml file for the android-support-v7-mediarouter.

<resources>
    <style name="Widget.MediaRouter.MediaRouteButton"
            parent="Widget.AppCompat.ActionButton">
        <item name="android:minWidth">56dp</item>
        <item name="android:minHeight">48dp</item>
        <item name="android:padding">0dp</item>
        <item name="android:focusable">true</item>
        <item name="android:contentDescription">@string/mr_media_route_button_content_description</item>
        <item name="externalRouteEnabledDrawable">@drawable/mr_ic_media_route_holo_dark</item>
    </style>

    <style name="Widget.MediaRouter.Light.MediaRouteButton"
            parent="Widget.AppCompat.Light.ActionButton">
        <item name="android:minWidth">56dp</item>
        <item name="android:minHeight">48dp</item>
        <item name="android:padding">0dp</item>
        <item name="android:focusable">true</item>
        <item name="android:contentDescription">@string/mr_media_route_button_content_description</item>
        <item name="externalRouteEnabledDrawable">@drawable/mr_ic_media_route_holo_light</item>
    </style>
</resources>

But I am getting lots of no resource found errors, Some of them are:

[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:32: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.Solid'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:40: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid.Inverse'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:122: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:125: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:129: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton.CloseMode'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:133: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton.CloseMode'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:137: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton.Overflow'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:141: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton.Overflow'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:44: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabBar'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:48: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:52: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar.Inverse'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:56: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabView'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:60: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:64: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView.Inverse'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:68: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabText'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:72: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabText'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:76: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabText.Inverse'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:80: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionMode.Inverse'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:104: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Title'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:108: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Subtitle'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:112: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Title.Inverse'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:116: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Subtitle.Inverse'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:84: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Menu'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:88: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Title'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:92: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Subtitle'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:96: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Title.Inverse'.
[2014-04-05 10:03:14 - SplashActivity] /home/sahil/workspace/android-support-v7-appcompat/res/values-v14/styles_base.xml:100: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Subtitle.Inverse'.

I am trying to get QuickBlox chat sample to work. **EDIT:**Versions: enter image description hereenter image description hereenter image description here

like image 496
Sahil Sareen Avatar asked Apr 05 '14 04:04

Sahil Sareen


1 Answers

android media router depends on appcompat v7 library. to resolve this issue correctly, add appcompat as a dependency for your "android-support-v7-mediarouter" library project and then add the media-router as a dependency for your own project...

more like your project depends on android-support-v7-mediarouter which depends on appcompat_v7

old question, late response, but hope it helps someone. Took me some time to figure it out.

:)

like image 182
Farai Avatar answered Oct 02 '22 14:10

Farai