Erreur: Pas de ressource trouvée, qui correspond au nom donné ("titre" avec la valeur "@string/menu_settings')

Je suis en train de faire l'exercice "sudoku" du livre "bonjour à android".
J'ai vu certaines personnes ont le même problème que moi, mais je ne suis pas en mesure de le résoudre.
J'ai supprimé trois fois ce projet et de le re-créer, dès le début, mais je reçois le même message d'erreur ci-dessous, même si je suis en train de faire un copier/coller de la livre.

W/ResourceType( 8592): Bad XML block: header size 29806 or total size 538970658 is larger than data size 0
    C:\java\Sudoku\res\layout\activity_main.xml:6: error: Error: No resource found that matches the given name (at 'text' with value '@string/hello_world').
C:\java\Sudoku\res\menu\activity_main.xml:2: error: Error: No resource found that matches the given name (at 'title' with value '@string/menu_settings').

Il y a le code à l'intérieur du livre pour la Sudokuv1/res/layout/main1.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/main_title" />
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/continue_label" />
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/new_game_label" />
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/about_label" />
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/exit_label" />
</LinearLayout>    

Il y a le code pour Sudokuv1/res/values/strings.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Sudoku</string>
<string name="main_title">Android Sudoku</string>
<string name="continue_label">Continue</string>
<string name="new_game_label">New Game</string>
<string name="about_label">About</string>
<string name="exit_label">Exit</string>
</resources>

Merci pour votre aide!

Je pense que le problème est dans le xml activity_main pas celui que vous avez posté, il semble comme il est à la recherche d'une chaîne de caractères appelée hello_world et menu_settings qui n'existent pas.
Vous avez collé le mal xml. Vérifiez votre sortie d'erreur.
nous montrer activity_main.xml .... ou tout simplement ajouter à string.xml <string nom="hello_world">salut</string>, et c'est tout.

OriginalL'auteur user1805 | 2012-07-31