Aucune ressource trouvée correspondant au prénom dans le fichier main.xml
Cela commence vraiment à me rendre dingue.
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@id+/textview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/hello"/>
Produit le message d'erreur suivant: "Error: no resource found that matches the given name (at 'id' with value '@id+/textview')
.
C'est copier-collé à partir de l'Android bonjour tout le monde
exemple.
source d'informationauteur AndroidBeginner
Vous devez vous connecter pour publier un commentaire.
@+id
pas@id+
. Semble que le tutoriel est faux!C'est juste une petite faute de frappe; vous avez besoin de mettre le " + "après le"@", et non pas après "id":