わかりました。Androidデベロッパーサイトでレッスンサンプルをフォローしているので、コードは次のようになります。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<EditText android:id="@+id/edit_message"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send" />
</LinearLayout>
どうやら、コードは問題ないはずです。間違って入力したのではないかと心配した後、直接コピーしてしまいましたが、コンソールから次のように表示されます。
説明エラー:エラー:指定された名前に一致するリソースが見つかりません(「ヒント」で値「@ string / edit_message」)。
説明エラー:エラー:指定された名前に一致するリソースが見つかりません(「text」で値「@ string / button_send」)。
これらの値はstrings.xmlファイルで定義されています。したがって、なぜこれらのエラーが発生するのかわかりません。
ここでお手伝いできる方には、よろしくお願いします。