1、问题 运行Android项目的时候提示出现这个 XML or text declaration not at start of entity 日了狗前几天都正常 2、解决办法 原来是我的一个xml文件的头部有空格,去掉了就好了。