2017-07-17 39 views
0

我不明白什麼是錯誤。該IDE給我一個錯誤,在2號線:Android Studio中的Android支持設計錯誤

<?xml version="1.0" encoding="utf-8"?> 
<android.support.design.widget.CoordinatorLayout 
xmlns: android="http://schemas.android.com/apk/res/android" 
xmlns: tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
tools:context="dreamer.dareyou.HomeActivity"> 

<RelativeLayout 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 

</android.support.design.widget.CoordinatorLayout> 
+2

刪除雙冒號和android之間的空間....也爲下一行 – Mohsen

回答

0

像穆赫辛說,你需要刪除你有xmlns:android之間的空間。你的第三和第四行應該是這樣的:

xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools"