首页 > 解决方案 > arrays.xml:16:错误:解析 XML 时出错:标签不匹配

问题描述

<string-array name="screen_orientation_entryvalues"><item>sensor</item><item>landscape</item>unspecified</item></string-array>
<string-array name="solar_emulation_entries"><item>L + left/right</item><item>"Device's light sensor"</item></string-array>
<string-array name="solar_emulation_entryvalues"><item>user_setting</item><item>light_sensor</item></string-array>

标签: xmlandroid-layout

解决方案


The last item in the first string-array has an unmatched end tag.

Here it is with the matching start tag added:

<resources>
  <string-array name="screen_orientation_entryvalues"><item>sensor</item><item>landscape</item><item>unspecified</item></string-array>
  <string-array name="solar_emulation_entries"><item>L + left/right</item><item>"Device's light sensor"</item></string-array>
  <string-array name="solar_emulation_entryvalues"><item>user_setting</item><item>light_sensor</item></string-array>
</resources>

推荐阅读