Error in strings.xml file in Android

前端 未结 9 638
[愿得一人]
[愿得一人] 2020-11-28 04:37

I have declared a long string in string.xml of an application.

Declared like this

PLEASE READ THESE TERMS          


        
9条回答
  •  没有蜡笔的小新
    2020-11-28 05:22

    post your complete string. Though, my guess is there is an apostrophe (') character in your string. replace it with (\') and it will fix the issue. for example,

    //strings.xml
    
    Hey Mr. Android, are you stuck?  Here, I\'ll clear a path for you.  
    
    

    Ref:

    http://www.mrexcel.com/forum/showthread.php?t=195353

    https://code.google.com/archive/p/replicaisland/issues/48

提交回复
热议问题