1

だから今日、私はこのビデオに従って最初の Android アプリを構築し始めました: http://www.youtube.com/watch?v=U5Qi0lb_3nE

ビデオの約半分を実行した後、「ルート要素に続くドキュメントのマークアップは整形式でなければなりません」というエラーが表示されました

問題が見えないので、ここに私が持っているコードがあります:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
tools:ignore="MergeRootFrame" />

<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello!" />

<TextView android:id="@+id/text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="This is my first android application!" />

<Button android:id="@+id/button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text ="And this is a Clickable button!!!" />
</FrameLayout>

動画で行き詰ったのは9分くらいのところでした。

具体的でなくて申し訳ありません。Stockover を使用したことがありません。

助けてくれてありがとう!

4

1 に答える 1