Skip to content

Instantly share code, notes, and snippets.

View yongyanghz's full-sized avatar
🏠
At Office

Yong Yang yongyanghz

🏠
At Office
View GitHub Profile
…or create a new repository on the command line
echo "# Guitar-Ear-Training" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:yongyanghz/Guitar-Ear-Training.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin git@github.com:yongyanghz/Guitar-Ear-Training.git
@yongyanghz
yongyanghz / gist:e6ab589bf7197b0e5c2e8ca05d647dc2
Created February 4, 2019 11:15
Android development issues meterror: unescaped apostrophe in string
error: unescaped apostrophe in string
in res/values/string files
Example:
<string name="article_text"> They soon made their motion picture debut with the mock-documentary A Hard Day's Night (1964). From 1965 onwards, they produced increasingly innovative recordings, including the albums Rubber Soul (1965), Revolver (1966), Sgt. Pepper's Lonely Hearts Club Band (1967), The Beatles (also known as the "White Album", 1968) and Abbey Road (1969). In 1968, they founded Apple Corps, a multi-armed multimedia corporation that remains active. After disbanding in 1970, the four members each enjoyed success as solo artists. Lennon was shot and killed in December 1980, and Harrison died of lung cancer in November 2001. McCartney and Starr remain musically active.
The Beatles are the best-selling band in history, with estimated sales of over 800 million records worldwide.</string>
Solution: add "\"before "'".