I received error in my xml file. "Incorrect line ending: found carriage return (\r) without corresponding newline (\n).
<Button
android:id="@+id/btn_login"
android:layout_width="100dip"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/et_un"
android:layout_marginBottom="15dp"
android:layout_marginRight="22dp"
android:text="Login"
android:textColor="#AA0000"
android:textSize="10pt" />
How to solve it. can anyone help
Using Eclipse on Windows?
.out
files the builder might have created.It looks like stupid thing, But It worked for me
It really worked for me.
It's easier than other answers:
Ctrl + 1 -> Fix lines
;)
Yesterday, I got this very same error message.
My fix is by simply removing every newline after
/>
So, if you have
<Button
/>
<Button
/>
change it into
<Button
/>
<Button
/>
Might not be the best solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With