最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】ADT中编辑strings.xml时出现错误:content is not allowed in prolog

Android crifan 3481浏览 0评论

【问题】

现象,在折腾:

【记录】实现安卓版的DownloadSongtasteMusic中的添加文本标签和文本输入框

过程中,编辑strings.xml时,结果出现错误:

content is not allowed in prolog

error content is not allowed in prolog

【解决过程】

1。突然发现,原来在xml文件开头中,之前,在粘贴url_or_id到string的name中时,始终粘贴不进去

结果现在发现,其却一直都是粘贴到了xml文件中了。

很是诡异:

text before xml

所以才有此错误提示的。

2。删除之后:

remove invalid head

就正常了。

 

【总结】

开发过程中,总是有很多意外的。。。。

转载请注明:在路上 » 【已解决】ADT中编辑strings.xml时出现错误:content is not allowed in prolog

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (1)

  1. 为什么我的删了还是美好...
    高手6年前 (2018-03-30)回复
86 queries in 0.170 seconds, using 22.20MB memory