Let Do This This gav...">

Android Studio will not change the line

In my file strings.xml, I had this line:

<string name="lets_do_this">Let Do This</string>

This gave me an error:

Error: (897) Apostrophe which is not preceded by \ (in Let Do This)

So, I changed the line to this:

<string name="lets_do_this">Let\ Do This</string>

But every time I build a project, for some reason, the line continues to change to the first version, and I continue to get this error without the possibility of changing the line. Why is this happening?

+4
source share
2 answers

If it changes, it sounds like you changed the xml lines file located in the folder build, but you need to edit your own in res/valuesthe application module.

+5
source

(') , (\'), ("").

-

<string name="lets_do_this">"Let Do This"</string>
+2

Source: https://habr.com/ru/post/1664177/


All Articles