android:gravity="center" //居中了
android:ignoreGravity="@id/text1" //添加了这一行就会出错_**
tools:context="com.example.cheng.reesultlayoutdemo.MainActivity">
<TextView
android:id="@+id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
<TextView
android:id="@+id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="DA"/>
出现这个错误
Error:(13, 28) No resource found that matches the given name (at 'ignoreGravity' with value '@id/text1').
Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
初学者求教,实在不知如何下手,哪位大神帮忙解决一下