IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Android Discussion :

Problème Eclipse à l'ouverture


Sujet :

Android

  1. #1
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Novembre 2014
    Messages
    2
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Novembre 2014
    Messages : 2
    Par défaut Problème Eclipse à l'ouverture
    Bonjour,

    Depuis hier, j'ai un problème pour créer mes projets Eclipse.

    J'ai cela dans les logs quand je crée un nouveau projet.
    [2014-11-29 12:52:02 - appcompat_v7] WARNING: unable to write jarlist cache file E:\ANDROID\Projet\appcompat_v7\bin\jarlist.cache
    [2014-11-29 12:52:02 - appcompat_v7] WARNING: unable to write jarlist cache file E:\ANDROID\Projet\appcompat_v7\bin\jarlist.cache
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
    [2014-11-29 12:52:04 - test]
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
    [2014-11-29 12:52:04 - test]
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
    [2014-11-29 12:52:04 - test]
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
    [2014-11-29 12:52:04 - test]
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
    [2014-11-29 12:52:04 - test]
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
    [2014-11-29 12:52:04 - test]
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
    [2014-11-29 12:52:04 - test]
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
    [2014-11-29 12:52:04 - test]
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
    [2014-11-29 12:52:04 - test]
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:69: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
    [2014-11-29 12:52:04 - test]
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:45: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
    [2014-11-29 12:52:04 - test]
    [2014-11-29 12:52:04 - test] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:49: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.

    ......

    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:69: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:45: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:49: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
    [2014-11-29 12:52:06 - appcompat_v7]
    [2014-11-29 12:52:06 - appcompat_v7] E:\ANDROID\Projet\appcompat_v7\res\values-v21\styles_base.xml:53: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.

    ......
    Le problème est que j'ai une croix sur le projet appcompat-v7 et un point d'exclamation sur mon projet.

    Quelqu'un saurait-il m'indiquer comment résoudre ce problème ?

    Merci d'avance pour votre aide.

  2. #2
    Membre émérite
    Avatar de LeBzul
    Homme Profil pro
    Inscrit en
    Décembre 2008
    Messages
    381
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Meurthe et Moselle (Lorraine)

    Informations forums :
    Inscription : Décembre 2008
    Messages : 381
    Par défaut
    Salut,
    Si tu utilises Eclipse (La procédure est équivalente dans les autres IDE, mais les chemins surement différent) :

    - Clique droit sur ton projet -> Properties -> Android
    - Dans l'onglet Library supprime app-compact
    - Ensuite supprime dans le dossier res/values les fichiers style.xml
    - Supprime la référence au style dans AndroidManifest.xml.

    Normalement tu devrais plus avoir de soucis après ca.

  3. #3
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Novembre 2014
    Messages
    2
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Novembre 2014
    Messages : 2
    Par défaut
    Merci bien! ca a marché

  4. #4
    Nouveau membre du Club
    Femme Profil pro
    INETI
    Inscrit en
    Novembre 2013
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Algérie

    Informations professionnelles :
    Activité : INETI
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Novembre 2013
    Messages : 6
    Par défaut
    SVP vous voulez dire quoi par " Supprime la référence au style dans AndroidManifest.xml. " Je n'ai pas su le faire ?

  5. #5
    Membre émérite
    Avatar de LeBzul
    Homme Profil pro
    Inscrit en
    Décembre 2008
    Messages
    381
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Meurthe et Moselle (Lorraine)

    Informations forums :
    Inscription : Décembre 2008
    Messages : 381
    Par défaut
    Dans le fichier AndroidManifest.xml :

    Tu dois avoir quelques choses comme :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
      <application
            android:allowBackup="true"
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name"
            android:theme="@style/AppTheme" >
    Il faut simplement supprimer la ligne :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    android:theme="@style/AppTheme"
    Normalement, c'est la seul chose à faire.

  6. #6
    Nouveau membre du Club
    Femme Profil pro
    INETI
    Inscrit en
    Novembre 2013
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Algérie

    Informations professionnelles :
    Activité : INETI
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Novembre 2013
    Messages : 6
    Par défaut
    Mais il n'y a que cette partie dans mon fichier :o

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    <?xml version="1.0"  encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
              package="android.support.v7.appcompat">
        <uses-sdk android:minSdkVersion="7"/>
        <application />
    </manifest>
    Merci pour de m'aider

  7. #7
    Membre émérite
    Avatar de LeBzul
    Homme Profil pro
    Inscrit en
    Décembre 2008
    Messages
    381
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Meurthe et Moselle (Lorraine)

    Informations forums :
    Inscription : Décembre 2008
    Messages : 381
    Par défaut
    Lorsque tu as crée ton projet, eclipse a importé un autre projet automatiquement; il s’appelle appcompact_v7. Tu peux le supprimer (dans eclipse : click droit->delete).

    Il ne faut pas faire les étapes que j'ai donné plus haut dans ce projet, mais bien dans celui que tu as crée (et qui porte le nom que tu lui as donné) :

    - Clique droit sur ton projet -> Properties -> Android
    - Dans l'onglet Library supprime app-compact
    - Ensuite supprime dans le dossier res/values les fichiers style.xml
    - Supprime la référence au style dans AndroidManifest.xml.
    Si tu es dans le bon projet, ton manifest doit ressembler à cela :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="TonPackage"
        android:versionCode="1"
        android:versionName="1.0" >
     
        <uses-sdk
            android:minSdkVersion="8"
            android:targetSdkVersion="21" />
     
        <application
            android:allowBackup="true"
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name">
            <activity
                android:name=".MainActivity"
                android:label="@string/app_name" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
     
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>
     
    </manifest>

  8. #8
    Nouveau membre du Club
    Femme Profil pro
    INETI
    Inscrit en
    Novembre 2013
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Algérie

    Informations professionnelles :
    Activité : INETI
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Novembre 2013
    Messages : 6
    Par défaut
    Je vous remercie infiniment !! Je n'ai pas remarqué cette erreur car je débute seulement aujourd'hui
    Merci encore une fois pour votre aide, je n'ai plus d'erreurs et ça marche !!

  9. #9
    Membre émérite
    Avatar de LeBzul
    Homme Profil pro
    Inscrit en
    Décembre 2008
    Messages
    381
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Meurthe et Moselle (Lorraine)

    Informations forums :
    Inscription : Décembre 2008
    Messages : 381
    Par défaut
    Super

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Problème Eclipse, Oracle & Hibernate Synchronizer
    Par Cenrok dans le forum Eclipse Java
    Réponses: 2
    Dernier message: 23/11/2006, 22h10
  2. [problème] Eclipse Profiler
    Par viscere dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 19/07/2006, 21h04
  3. Réponses: 15
    Dernier message: 23/06/2006, 13h09
  4. Problème pour l'ouverture d'un popup
    Par hkpsyco dans le forum Langage
    Réponses: 5
    Dernier message: 16/06/2006, 18h49

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo