简体   繁体   English

在此行找到多个注释:

[英]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.

相关问题 “在这一行发现了多个注释” - "Multiple annotations found at this line" 在此行找到多个注释 - Multiple annotations found at this line 在此行找到多个注释: - Multiple annotations found at this line: 错误:在此行发现多个注释: - Error : Multiple annotations found at this line: 错误:在此行发现多个注释: - error: Multiple annotations found at this line: 在此行发现多个注释:-错误:在包&#39;android&#39;中找不到属性&#39;layout_alignBaseLine&#39;的资源标识符 - Multiple annotations found at this line: - error: No resource identifier found for attribute 'layout_alignBaseLine' in package 'android' 在此行发现多个注释:-错误:在包中找不到属性&#39;fetch_user_info&#39;的资源标识符 - Multiple annotations found at this line: - error: No resource identifier found for attribute 'fetch_user_info' in package 在此行找到多个注释:第一个程序Android Programming_ The Big Nerd Ranch Guide f - Multiple annotations found at this line: first program Android Programming_ The Big Nerd Ranch Guide f 在此行发现多个注释:-文档中根元素之后的标记必须格式正确 - Multiple annotations found at this line: - The markup in the document following the root element must be well- formed Retrofti 2:找到多个 Retrofit 注释,只允许一个。 (参数#1) - Retrofti 2: Multiple Retrofit annotations found, only one allowed. (parameter #1)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM