Android xml布局文件报错Incorrect line ending: found carriage return (\r) without corresponding newline (\n

来源:互联网 发布:js input 隐藏光标 编辑:程序博客网 时间:2024/06/07 20:50

问题描述


在写界面布局时,某控件的最后行报如下错误

Incorrect line ending: found carriage return (\r) without corresponding newline (\n)

解决方法


  1. project –> clear (可以解决,但再次保存文件时又报错)
  2. ctrl+a 全选 –> ctrl+x剪贴 –> ctrl+s 保存 –> ctrl+v 复制 –> ctrl+s 保存

注: 由于时间原因,虽然问题解决了,但是具体错误原因并未深究,欢迎交流。

0 0