2017-04-12 22 views
0

Ich bekomme diese Warnung auf ein neues Projekt.Visual Studio 2017 Intellisense Fehler

"Undefinierter complexType 'java.lang.Object' wird als Basis für komplexe Typenerweiterung verwendet."

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"> 
<android:orientation="vertical"> 
<android:layout_width="match_parent"> 
<android:layout_height="match_parent"/> 

Schemata haben android-Layout-xml.xsd, schemas.android.com.apk.res.android.xsd, schemas.android.com.apk.red.auto.xsd, schemas.android .com.tools.xsd

Irgendwelche Ideen, warum ich nur Artikel bekomme, wenn ich LinearLayout entferne?

Wenn ich etwas in ein Layout setze, wird es keine Intellisense zeigen.

Dank

Antwort

0

Das xml tut richtig angezeigt werden, versuchen die unten. Ich habe auch eine Schaltfläche hinzugefügt, damit Sie ein Beispiel für ein Inhaltselement sehen können.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 
    <Button 
     android:id="@+id/MyButton" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:text="MyButton" /> 
</LinearLayout> 
+0

danke für die Antwort Ich versuche Ihren XML-Code, aber keine Änderung. –

Verwandte Themen