Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

erreur parsing

Featured Replies

Posté(e)

bonjour,

j'ai un fichier main.xml qui est le suivant :

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   android:orientation="vertical"  
   >
<CheckBox    
   android:id="@+id/CheckBox01"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:src="@string/checkboxtext">
   </CheckBox>
<ImageButton
   android:id="@+id/ImageButton01"
   android:layout_width="100dip"
   android:layout_height="wrap_content"
   android:src="@drawable/icon">
   </ImageButton>
</LinearLayout>

et le fichier strings :

<?xml version="1.0" encoding="utf-8"?>
<resources>
   <string name="app_name">I18N</string>
   <string name="checkboxtext">A string to translate</string>
</resources>

la compil me sort un fichier main.out.xml et l'erreur "[2010-12-13 16:22:15 - inter] Error in an XML file: aborting build"

je ne comprends pas ce qui le gene car il n'y a pas d'erreur de syntaxe.

des explications ?

merci

Modifié par patk29

Posté(e)

Salut,

C'est un problème que j'ai aussi sous Eclipse, il se produit lorsque que tu veut lancer une application et que le fichier courant ouvert est un XML, avant de cliquer sur RUN ouvre un fichier java et ca passera.

Posté(e)
  • Auteur

non malheureusement ce n'est pas cela ça n'a pas réglé le problème :emo_im_undecided:

Posté(e)

il faut pensé à supprimer le fichier out.xml qui a été créé ;)

Modifié par moritan

Posté(e)
  • Auteur

cela va de soi , même en faisant un clean en plus cela ne change rien

Posté(e)

Le fichier est généré dans les source donc le clean ne change rien

Posté(e)
  • Auteur

problème résolu:

l'erreur est qu'en fait j'avais créé le projet en 2.3 et que je le lançais sous un émulateur en 2.1.

l'ajout d'un nouvel émulateur a résolu le problème

  • 2 months later...
Posté(e)

merci de rajouter [Résolu] à ton titre de sujet : patk29 :)

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.