【发布时间】:2016-11-10 07:00:32
【问题描述】:
我现在真的很沮丧。我在 values.xml 文件中创建了这样的字符串资源
<string name="details">the yadayadayada is going to be a great suspension and when it comes, it's good. after a long time</string>
在运行我的应用程序后,我遇到了这个错误
Error:(348) Apostrophe not preceded by \ (in the yadada is going to be a great suspension and when it comes, it's good. after a long time)
所以我在撇号前面加上 '\' 但错误仍然显示。现在我实际上已经删除了字符串资源,但是当 gradle 构建时,它会再次重新创建资源,然后再次给我同样的错误。我试过“无效缓存/重启”,我试过删除我的 .gradle 文件夹,我什至使用了命令
gradlew --stop clean build
但错误仍在显示。我真的不知道现在该怎么办。 提前感谢您的帮助
【问题讨论】:
标签: android android-studio gradle android-gradle-plugin build.gradle