I am using Android Studio v2.1.2.. This is my attempt at android development so, I am making a lot of mistakes.. However when i am correcting them, and trying to build again it's still showing the same errors; I tried to clean the project, tried restarting Android Studio but of no luck.. Like in this pic, this apostrophe error is not going away.. i had similar errors earlier also.. They were not severe so i kept them that way.. I know this is a stupid question, but anyone could tell me how to solve this I would be grateful. Thanks in Advance...My Problem
Asked
Active
Viewed 64 times
-1
-
update your value.xml – Amit Basliyal Jun 15 '16 at 11:24
-
@AmitBasliyal I have edited the code in value.xml but it's still showing the error; if i delete all occurrences of the error, it still re-generates the error by bringing back the string text. – Nirmala Jun 15 '16 at 11:46
-
try other `apptheme` and update your value.xml file here may help you – Amit Basliyal Jun 15 '16 at 12:12
-
Possible duplicate of [Error in strings.xml file in Android](http://stackoverflow.com/questions/5657047/error-in-strings-xml-file-in-android) – Ali Bdeir Jun 15 '16 at 20:36
-
No. Mine is different .. Read the question.. – Nirmala Jun 16 '16 at 08:09
-
I tried other apptheme too;@AmitBasliyal – Nirmala Jun 16 '16 at 08:09
1 Answers
0
You have this: "Let's take a test!!!
" in your values.xml
file.
Update it to this: "Let\'s take a test!!!
".
Always put a \
before a '
(Apostrophe) in your strings.xml/values.xml/etc.
I hope I helped.

Ali Bdeir
- 4,151
- 10
- 57
- 117
-
I did that. But errors are not going away.. The gradle re-instates the error while building... – Nirmala Jun 16 '16 at 08:07
-
@Nirmala Did you try cleaning your project? Show me your values.xml, otherwise I can't help you. – Ali Bdeir Jun 17 '16 at 11:40