android studio中報error: Apostrophe not preceded by \錯誤

        今天叫別人將string.xml文件中的中文翻譯成英文,然後運行android studio後,發現報error: Apostrophe not preceded by \錯誤,發現出錯原因是我們在string.xml文件中單引號之前沒有加反斜槓轉義。比如You don't have any followers!這句話要改成You don\'t have any followers!這種,然後再運行,就可以了。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章