Erreur dans styles.xml dans android-support-v7-mediarouter
Est le suivant styles.xml fichier pour 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>
Mais je reçois beaucoup d'aucune ressource trouvé des erreurs, Certains d'entre eux sont:
[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'.
J'essaie d'obtenir QuickBlox chat échantillon de travail.
**EDIT:**les Versions:
- Avez-vous inclus les
mediarouter
bibliothèque dans votre projet Android? La bibliothèque se trouve ici, en supposant que vous avez déjà installé le SDK Android:..\android-sdk\extras\android\support\v7\mediarouter
- Oui je l'ai fait par le projet->propriétés->source>lien source-> chemin d'accès à mediarouter.. Mais j'ai reçu toutes ces erreurs..
- Vérifier ma réponse ci-dessous pour voir si ça aide. Remarque: Vous devrez peut-être supprimer votre référence à la
mediarouter
de la bibliothèque.
Vous devez vous connecter pour publier un commentaire.
Dans
Eclipse
, à part lemediarouter
de la bibliothèque à travers de multiples projets Android, procédez de la manière suivante:Dans Eclipse, sélectionnez Fichier | Importer | Projets Existants dans l'espace de travail. cliquez sur Prochaine.
Cliquez sur Parcourir, et naviguez vers le répertoire de Android appcompat répertoire. Le répertoire par défaut doivent être:
..\android-sdk\extras\android\support\v7\mediarouter\
.Cliquez sur Finition pour ajouter le nouveau projet.
Sélectionnez le Propriétés onglet d'un projet Android.
Dans le Propriétés écran, sélectionnez le Android option (dans le volet de gauche), puis cliquez sur Ajouter, et sélectionnez le mediarouter bibliothèque à partir de la liste.
Cliquez sur OK pour enregistrer les modifications.
IMPORTANT: Répétez les étapes ci-dessus pour ajouter le
appcompat
etgridlayout
bibliothèques dans votre Android des projets que ces bibliothèques sont tenues par lamediarouter
de la bibliothèque. Une fois le appcompat et gridlayout bibliothèques sont ajoutés dans l'espace de travail, ajouter le appcompat et gridlayout des bibliothèques à l'mediarouter projet en effectuant les étapes 4 à 6 ci-dessus et la substitution de la appcompat/gridlayout nom si nécessaire.Considérant que, pour intégrer la
mediarouter
bibliothèque dans votre projet Android, il suffit de copier les fichiers JAR de la mediarouter delibs
dossier dans votre projetlibs
dossier. Vous devez également copier les libs de laappcompat
etgridlayout
dossiers de votre projetlibs
dossier, trop!mediarouter
projet de bibliothèque dépend de laappcompat
projet de bibliothèque, de sorte que vous pouvez avoir besoin d'importer le appcompat bibliothèque.PaddingStart
,PaddingEnd
, etc c'est parce qu'ils sont disponibles uniquement à partir de l'API à partir de 17. Pour surmonter ce problème, ouvrez votre mediarouter deproject.properties
fichier et modifier àtarget=android-17
, outarget=android-18
outarget=android-19
(dernière API disponible pour Android).android médias routeur dépend appcompat v7 bibliothèque.
pour résoudre ce problème correctement, ajoutez appcompat comme une dépendance de votre "android-support-v7-mediarouter" bibliothèque de projet, puis ajoutez les médias-routeur comme une dépendance pour votre propre projet...
de votre projet dépend android-support-v7-mediarouter qui dépend appcompat_v7
vieille question, réponse tardive, mais j'espère que ça aide quelqu'un.
M'a fallu un certain temps pour le comprendre.
🙂