编辑 activity_main.layout文件时报错,如图: xml declaration should precede all document content 解决方案:第一行代码必须在第一行!!!就算前面是空的也不行!!! 2020.10.10 0:43