幾個string.xml文件報錯 string value is not translated in "zh"(Chinese)[MissingTranslation]。
通過查找解決方案,發現有三種方案可以解決:
1、 在string 里加attribute translatable="false":
<string name="hello_world" translatable="false">你好</string>
2、直接設定 string.xml文件內的resources的attribute:
<resources
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MissingTranslation">
<string name="hello_world">你好</string>
</resources>
3、 File-->Setting-->Editor下的Inspections-->Android Lint 下的 Incomplete translation勾選去掉(不是很推薦,這是在google上找到的一種方法,試了一下不可以)