gpt4 book ai didi

android - 在此行 : 找到多个注释

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:20:03 26 4
gpt4 key购买 nike

面对这个错误

Multiple annotations found at this line:
- error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false"
attribute?
- error: Unexpected end tag string

这是我的代码

<resources>
<string name="app_name">SpeedTest</string>
<string name="network_edge">Network : EDGE</string>
<string name="network_3g">Network : 3G</string>
<string name="network_detecting">Network : Detecting </string>

<string name="update_speed">%s kbit/sec</string>
<string name="update_downloaded">Downloaded %s of %s</string>
<string name="update_connectionspeed">Connection time %s ms</string>

<string name="update_downloaded_complete">Downloaded %s @ %s kbit/sec</string>

</resources>

面对这一行的错误

<string name="update_downloaded">Downloaded %s of %s</string>

最佳答案

如果你想替换两个字符串,这应该是正确的:

<string name="update_downloaded">Downloaded %1$s of %2$s</string>

看这里:http://mobile.tutsplus.com/tutorials/android/android-sdk-format-strings/

关于android - 在此行 : 找到多个注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14110596/

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