android - Unknown Error in XML -
hi have made xml file throwing error : incorrect line ending: found carriage return (\r) without corresponding newline (\n)
here xml file :
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <relativelayout android:layout_width="fill_parent" android:layout_height="wrap_content" > <imageview android:id="@+id/imageview1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:src="@drawable/help_new_session" android:layout_above="@+id/buttonhidenewsessionhelp" /> <button android:id="@+id/buttonhidenewsessionhelp" style="?android:attr/buttonstylesmall" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:onclick="onbuttonclick" android:text="hide" /> </relativelayout> </linearlayout>
the below process resolve issue.
- open layout file
- ctrl+shift+f
- save layout file , close it.
- delete .out files builder might have created(you can see .out files below original layout file).
- clean project.
Comments
Post a Comment