Eclipse carriage return fix

Ever got this error in eclipse before “Incorrect line ending: found carriage return (\r) without corresponding newline (\n)” ? Its the singly most annoying thing to happen when opening android layout xml files. Its caused by a bug in the previous version of the editor that made inconsistent line endings in the files. The new editor picks it up as an error.

carriage return

I fixed this by copying and pasting the xml code in notepad then pasting it back inside eclipse. A quicker fix is to press Ctrl + Shit + F and then saving the file.

hope i saved u a headache


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s