2017-04-12 34 views
0

新しいプロジェクトでこの警告が表示されます。ビジュアルスタジオ2017インテリセンスエラー

"未定義の複合型 'java.lang.Object'は、複合型拡張のベースとして使用されます。

<?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"/> 

がスキーマを持っているアンドロイドレイアウト-xml.xsd、schemas.android.com.apk.res.android.xsd、schemas.android.com.apk.red.auto.xsd、schemas.android .com.tools.xsd

LinearLayoutを削除した場合、なぜアイテムが表示されるのかについてのアイデアはありますか?

レイアウト内に何かを置くと、インテリセンスは表示されません。

ありがとうございました

答えて

0

xmlは正しく見えますが、以下を試してください。また、ボタンを追加して、サンプルのコンテンツ項目を表示することもできます。

<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

ありがとうございます。私はあなたのXMLコードを試してみますが、変更はありません。 –

関連する問題