Android - strings.xml 无法转义单引号

Zip*_*Zip 2 android android-xml

这是我得到的错误:

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').
Run Code Online (Sandbox Code Playgroud)

我的@string/secondary_text是这样的:

<string name="secondary_text">They&#39;re all free to download.</string>
Run Code Online (Sandbox Code Playgroud)

我在这里转义了单引号,我&apos;也尝试过,但仍然不起作用。唯一有效的是我They're改为They are.

有谁知道如何在 Android 上转义单引号?

Sae*_* Oh 5

您可以仅用于\'单引号。