Attribut fehlt der Android-namespace-Präfix für tools:context
Eclipse-editor "- Attribut fehlt der Android-namespace-Präfix" Fehler für die folgenden XML-Code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
tools:context=".MainMenuActivity" >
InformationsquelleAutor Xeos | 2013-08-18
Du musst angemeldet sein, um einen Kommentar abzugeben.
Es ist, weil
xmlns:tools="http://schemas.android.com/tools"
fehlt. Der code sollte wie folgt Aussehen:InformationsquelleAutor Xeos
hinzufügen
xmlns:tools="http://schemas.android.com/tools"
zu Ihrem layoutund beachten Sie auch, dass es nur ein namespace für Ihr layout und sollte verwendet werden, in übergeordneten layout !
chanage code
InformationsquelleAutor Tarsem Singh
Fügen Sie bitte xmlns:tools="http://schemas.android.com/tools" zu Ihrem code.
InformationsquelleAutor Jose Kurian