gpt4 book ai didi

java - 错误: The markup in the document following the root element must be well-formed

转载 作者:行者123 更新时间:2023-12-01 11:46:13 26 4
gpt4 key购买 nike

我是 Android 编程新手,我遇到了一个错误,任何人都可以帮助我并解释为什么我会出现错误:根元素后面的文档中的标记必须格式正确吗?这是我的代码。非常感谢

<color name="puzzle_background">#ffe6f0ff </color>
<color name="puzzle_hilite">#ffffffff</color>
<color name="puzzle_light">#64c6d4ef</color>
<color name="puzzle_dark">#6456648f</color>
<color name="puzzle_foreground">#ff000000</color>
<color name="puzzle_hint_0">#64ff0000</color>
<color name="puzzle_hint_1">#6400ff80</color>
<color name="puzzle_hint_2">#2000ff80</color>
<color name="puzzle_selected">#64ff8000</color>

最佳答案

在 XML 文档中,只有一个元素可以位于顶层。

维基百科:Root element

将你的颜色包裹成这样的东西:

<colors>
<color name="puzzle_background">#ffe6f0ff </color>
<color name="puzzle_hilite">#ffffffff</color>
<color name="puzzle_light">#64c6d4ef</color>
<color name="puzzle_dark">#6456648f</color>
<color name="puzzle_foreground">#ff000000</color>
<color name="puzzle_hint_0">#64ff0000</color>
<color name="puzzle_hint_1">#6400ff80</color>
<color name="puzzle_hint_2">#2000ff80</color>
<color name="puzzle_selected">#64ff8000</color>
</colors>

关于java - 错误: The markup in the document following the root element must be well-formed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29106454/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com