AndroidプログラミングP46~52 | AONEKO × Program × Life

AONEKO × Program × Life

Programer になりたい とあるエンジニア の日記

●エラー発生箇所(テキストでは以下のように記載。)
<EditText
 android:id="a+id/familyNameText"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"/>
●エラー内容
この行で見つかった複数の注釈:
- 要素タイプ "EditText" の後に属性指定 ">" または "/>" のいずれかがなけれ
 ばなりません。
- エラー: Error parsing XML: not well-formed (invalid token)

世界の博士たちに聞いて、解決!(テキストよりも頼りになるぅ^^*)

↓以下に修正
   <EditText>
  android:id="@+id/familyNameText"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content" </EditText>

だが、ほかの <EditText>記述では以下のように記載しておりエラーもない。

   <EditText
        android:id="@+id/firstNameText"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"  />

そしてfamilyNameText版でも同じように記載したところ、
エラーは出ず・・・

よくわからない。

私の大好きな先生が言う「Eclipseはフリーだから不具合がおきやすい」の良い例、なのかも。
次は次章から。