在layout的xml编写时出现下面的错误,
Multiple annotations found at this line:
- Unexpected text found in layout
file: " "
- Content is not allowed in trailing
section.
解决办法:
Window->Preferences->General->Editors->Text Editors->Show whitespace characters,
查看有没一些特殊字符存在或是一些隐藏字符的原因。
原因可能是我们从其他地方复制过来时存在着一些空格,回车等字符原因所致。