名称=“字符串"在此处翻译但未在默认语言环境中找到 [英] name="string" is translated here but not found in the default locale
本文介绍了名称=“字符串"在此处翻译但未在默认语言环境中找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 strings.xml
中声明了一个字符串,但出现此错误
I am declaring a string in the strings.xml
and I am getting this error
这是我的代码:
<string name="date_picker_title">Hire Date</string>
<string name="new_employee">New Employee</string>
<string name="show_subtitle">Show Subtitle</string>
<string name="hide_subtitle">Hide Subtitle</string>
<string name="subtitle_format">%1$s crimes</string>
<string name="choose_menu">Choose a Menu Option</string>
推荐答案
就我而言,这对我有帮助:
Here in my case this just helped me:
- 选择导致错误的字符串.
- 剪掉它们.
- 再次粘贴它们!
如果它不适合您,请尝试将相同的字符串添加到 strings.xml(v21)
文件中.
这对我来说非常有效.
If it doesn't work for you, try adding the same strings to strings.xml(v21)
file.
This worked perfectly for me.
这篇关于名称=“字符串"在此处翻译但未在默认语言环境中找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文