Strange xml error: Incorrect line ending

前端 未结 15 510
臣服心动
臣服心动 2021-02-01 13:42

I haven\'t used Eclipse since 1 week ago. Today I started it and I noticed that it loaded slowly. When it was started it prompted this:

http://tinypic.com?ref=2zpk1g2&am

相关标签:
15条回答
  • 2021-02-01 14:22

    Go to Preference -> Android -> Lint Error checking, then search for ID = MangledCRLF, change its severity below "error". This will fix the problem for the error - "Incorrect line ending: found carriage return (\r) without corresponding newline (\n)"

    0 讨论(0)
  • 2021-02-01 14:24

    Simple solution:

    Press: Ctrl + Shift + F and then save. It's a matter of formatting. This will format it.

    0 讨论(0)
  • 2021-02-01 14:24

    just cut and paste. It will work.

    0 讨论(0)
  • 2021-02-01 14:26

    As Tor says here, this is because they have solved the problem of "transparent" lines in xml, that weird error that when you click one line you were in another.

    As also he says, if you have this error is because you had files that can cause this "transparent" error so:

    Simply open up the file and invoke Ctrl-1; that will show the available quickfixes, and there's a quickfix for this line warning which will go and clean up the line endings in the given file.

    (Click over the error, press ctrl+1, you will see the fix)

    0 讨论(0)
  • 2021-02-01 14:26

    It is because you have commented few portions of the code. Remove that code and save. This thing worked for me.

    0 讨论(0)
  • 2021-02-01 14:29

    This is a very funny problem that I am also facing. The solution is simple. Just try out following on same page.

    Ctrl+A, Ctrl+X, then Ctrl+V

    Happy coding.

    0 讨论(0)
提交回复
热议问题