2017-01-18 2 views
0

entkommen Dies ist der Fehler, den ich habe:Android - strings.xml nicht Apostroph

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'). 

Meine @string/secondary_text ist wie folgt:

<string name="secondary_text">They&#39;re all free to download.</string> 

ich hier das Apostroph bin entkommen, habe ich versucht, &apos; auch, hat immer noch nicht funktioniert. Die einzige Sache, die arbeitete, ist, dass ich They're zu They are änderte.

Weiß jemand, wie man Zitat auf Android entkommt?

+1

https://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling –

+0

@MC Kaiser, das ist wahr. Als doppelt markiert. –

+0

@ cricket_007 Danke! – Zip

Antwort

1

Sie können einfach \' für Ihr Angebot verwenden.

Verwandte Themen