1

コーディングは初めてですが、まだ基本を学んでいます。チュートリアルを終了しようとしているときに問題が発生しました。「リソース」を作成しようとしたところ、「属性に Android 名前空間プレフィックスがありません」というエラー メッセージが表示されました。この Web サイトで検索しましたが、できませんでした。解決策が見つかりませんでした。問題は 16 行目、19 行目、22 行目、25 行目です。

よろしくクリストファー

    <?xml version="1.0" encoding="utf-8"?>
<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_width="wrap_content"
        android:layout_height="wrap_content"
        android:hint="@string/edit_message" />

    <resources>

        <string name="edit_message" >Enter a message
        </string>

        <string name="button_send" >Send
        </string>

        <string name="action_settings" >Settings
        </string>

        <string name="title_activity_main" >MainActivity
        </string>
    </resources>

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/button_send" />
</LinearLayout>
4

2 に答える 2