2013-01-01 32 views
6

Faceing這個誤差修改在這條線找到多個註釋:

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> 

回答

10

補充一點:

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

因爲您在此字符串中有特殊字符。

+0

感謝工作不錯.... – NagarjunaReddy