Android strings.xml can't escape double quote
I have a String in strings.xml that should be displayed below a password field showing which characters cannot be used. The String is: <string name="password_invalid">The key can only consist of 8 to 63 ASCII characters or 64 hexdecimal digits bestehen und cannot contain these characters: \" , : ; \\ & % + ' < > ?</string> But everytime I run the code, I get an error message from Android Studio: Error:(495) Apostrophe not preceded by \ (in The key can only consist of 8 to 63 ASCII characters or 64 hexdecimal digits bestehen und cannot contain these characters: \" , : ; \\ & % + ' < > ?) I just don't understand it why Android Studio sees the double quote as an error, I've already preceded it with a backslash as the documentation says I should. What I did: retype the whole phrase, not just copy it from somewhere -> same error write the double quote with " instead of \" -> doesn't show up clean/rebuild app -> same errors I either get the error message from above or the double quote gets ignored completely. Does anyone have an idea why it doesn't work?
It says that the problem is the Apostrophe that is this ', not this ". Try escaping the apostrophe with backslash \'.
The Error is not with the quote " but with the apostrophe '. So escape it with \' as well.
Android terminate problem
How can I create directory path and put my files in it while installing apk?
Set window full screen atribute after resume on Android
Books and Tutorials for OpenGL ES on Android and Object Oriented Programming
How to zip and unzip the files?
Android List view SectionIndexer - list view not displaying curent scroll letter
How to add footer view dynamically
Static methods vs. class extending android.app.Application?
Phonegap Webview - Show contacts list for Android Only
Android - how to create music note sound?
How to dynamically change the Spinner's items
Saving bytes from a .NET WebService from Android
Android custom dialler on tapping phone number links
Implementing OnTouchListener on LinearLayout - Android Development
writing a background program that executes when the main application is closed in android
Permission Denial , even after adding the correct permission in the manifest