这一切都发生在我的 Project -> res ->values -> strings.xml
文件中。
我的字符串如下:
<string name="Bellowy">"During its action, if HP is less than 50%, increase all your creatures ATK by 30% during their next basic ATK"</string>
控制台输出此错误strings.xml:98: error: Unexpected end tag string
。我发现有两个 %
符号无法在 R.java 文件中正确注册。如何修复此错误并在我的 Strings.xml
中出现两个 %
符号?
最佳答案
由于percent encoding,它一定造成了一些麻烦。 '%' 是转义字符。您可以使用%%
关于java - 字符串不能包含两个 '%',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30883790/