[英]Multiple annotations found at this line:
Faceing this erros 面对这个错误
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
this is my code 这是我的代码
<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>
Facing error from this line 面对这条线的错误
<string name="update_downloaded">Downloaded %s of %s</string>
This should be correct if you want to substitute two strings: 如果要替换两个字符串,这应该是正确的:
<string name="update_downloaded">Downloaded %1$s of %2$s</string>
Look here: http://mobile.tutsplus.com/tutorials/android/android-sdk-format-strings/ 请看这里: http : //mobile.tutsplus.com/tutorials/android/android-sdk-format-strings/
Add this : 添加这个:
<string name="update_downloaded" formatted="false">Downloaded %s of %s</string>
as you got special characters in this string. 因为你在这个字符串中有特殊字符。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.