增加一個新的活動,以我的項目而編制的佈局我獲得以下錯誤後Android Studio中:錯誤解析XML和URI未註冊
搖籃:錯誤解析XML:沒有很好地形成(標記無效)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/tv_password"
android:text="<password>"/>
</LinearLayout>
「http://schemas.android.com/apk/res/android」被標記紅色和懸停彈出以下消息向上
URI未註冊(設置|項目設置| Schema和DTD)
我的設置>項目設置> Schema和DTD看起來像:
我已經發現了一些類似的問題在這裏,但沒有幫我解決這個問題。我希望有人有一個想法... :)
嘗試刪除'android:text =「」'並查看是否導致此問題。 –
「」將導致該問題。您必須跳過尖括號。 http://stackoverflow.com/questions/4979889/escaping-angle-brackets-in-xml-in-eclipse-android –
Simon
謝謝你們! :)愚蠢的錯誤...:/ – Jonas