2017-07-17 68 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"