gpt4 book ai didi

java - 解析 XML 时出错 : mismatched tag XOSP

转载 作者:行者123 更新时间:2023-11-28 04:56:14 25 4
gpt4 key购买 nike

我正在尝试编译 android rom,但在构建时出现错误。错误和 xml 文件行如下:

我遇到的错误:

device/sony/shinano-common/overlay/frameworks/base/core/res/res/values/cr_config.xml:18: error: Error parsing XML: mismatched tag

build/core/package_internal.mk:389: recipe for target '/home/yanun/XOSP/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk' failed
make: *** [/home/yanun/XOSP/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file '/home/yanun/XOSP/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
make: *** Waiting for unfinished jobs....

#### make failed to build some targets (04:23 (mm:ss)) ####

cr_config.xml 的所有行

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">

<!-- Whether cpu boost is enabled for application's 1st launch. -->
<bool name="config_enableCpuBoostForAppLaunch">true</bool>
<!-- <integer name="launchboost_timeout_param">2000</integer> -->
<!-- <integer-array name="launchboost_param_value"> -->
<item>0x40804000</item> <!-- CPUBOOST_MAX_FREQ Core resource opcode-->
<item>0xFFF</item> <!-- CPUBOOST MAX_FREQ resource value-->
<item>0x40800000</item> <!-- CPUBOOST_MIN_FREQ Core resource opcode-->
<item>0xFFF</item> <!-- CPUBOOST MIN_FREQ resource value-->
<item>0x41800000</item> <!-- CPUBW_MIN_FREQ resource opcode-->
<item>140</item> <!-- CPUBW_MIN_FREQ resource value-->
<item>0x40400000</item> <!-- POWER COLLAPSE resource opcode-->
<item>0x1</item> <!-- POWER COLLAPSE resource value-->
<item>0x42C10000</item> <!-- STORAGE CLK SCALING resource opcode-->
<item>0x1</item> <!-- STORAGE CLK SCALING resource value-->
</integer-array>- 18 LINE
<!-- <bool name="config_enableCpuBoostForOverScrollerFling">true</bool> -->
<!-- <integer-array name="flingboost_param_value"> -->
<item>0x41800000</item> <!-- CPUBW_MIN_FREQ resource opcode-->
<item>0x33</item> <!-- CPUBW_MIN_FREQ resource value-->
<item>0x40800000</item> <!-- CPUBOOST_MIN_FREQ CORE resource opcode -->
<item>0x4B0</item> <!-- CPUBOOST MIN_FREQ resource value -->
<item>0x40C28000</item> <!-- SCHEDGROUP resource opcode-->
<item>0x1</item> <!-- SCHEDGROUP resource value-->
</integer-array>

< <!-- <bool name="config_enableCpuBoostForScroller">true</bool> -->
<!-- <integer-array name="scrollboost_param_value"> -->
<item>0x40800000</item> <!-- CPUBOOST_MIN_FREQ CORE resource opcode -->
<item>0x506</item> <!-- CPUBOOST MIN_FREQ resource value -->
</integer-array>


<!-- Extended Boosts for QPerformance -->

<!-- Boost parameters which get passed to QPerformance -->
<!-- <integer-array name="onbootboost_param_value"> -->
<item>0x40804100</item> <!-- CPUBOOST_MAX_FREQ Core resource opcode-->
<item>0xFFF</item> <!-- CPUBOOST MAX_FREQ resource value-->
<item>0x40800100</item> <!-- CPUBOOST_MIN_FREQ Core resource opcode -->
<item>0x6A4</item> <!-- CPUBOOST MIN_FREQ resource value -->
</integer-array>

最佳答案

您在评论中有一个开始标签:

 <!-- <integer-array name="launchboost_param_value"> -->

但在第 18 行中,您有一个未注释的结束标记

</integer-array>

要么取消第一个起始标签的注释以匹配结尾,要么将 </integer-array> 添加到注释中喜欢:

<!-- </integer-array> -->

看着你的xml我想您需要取消对起始标记的注释。

注意:在第 20、27 和 30、33 和 39、44 行,您在完全相同的标记处犯了 2 倍以上的错误。

第29行还有一个错误,符号<在行的开头。

关于java - 解析 XML 时出错 : mismatched tag XOSP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47081580/

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