这是我得到的错误:
Execution failed for task ':MyPackage:processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/abc/android-sdk-macosx/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
No resource found that matches the given name (at 'text' with value '@string/secondary_text').
我的@string/secondary_text
是这样的:
<string name="secondary_text">They're all free to download.</string>
我在这里逃避单引号,我也试过了'
,但仍然无效。唯一有效的是我将They're
更改为They are
。
有没有人知道如何在Android上逃脱单引号?
答案 0 :(得分:1)
您可以使用\'
作为单引号。