Error in strings.xml file in Android

前端 未结 9 635
[愿得一人]
[愿得一人] 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:25

    The best answer of simply escaping the ' with \' works but I do not like the solution because when using replace all with ' to \', it only works once. The second time you'll be left with \\'.

    Therefore, use: \u0027.

提交回复
热议问题