Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>
like image 939
NagarjunaReddy Avatar asked Jan 01 '13 12:01

NagarjunaReddy


1 Answers

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/

like image 74
tomasbuzek Avatar answered Oct 19 '22 14:10

tomasbuzek