"share" is translated here but not found in default locale

时间:2024-03-20 21:11:24

“share” is translated here but not found in default locale
If a string appears in a specific language translation file, but there is no corresponding string in the default locale, then this string is probably unused. (It’s technically possible that your application is only intended to run in a specific locale, but it’s still a good idea to provide a fallback.) Note that these strings can lead to crashes if the string is looked up on any locale not providing a translation, so it’s important to clean them up. Issue id: ExtraTranslation
strings.xml有时候会报一些一些无法解释的错误,如上所示
在默认语言环境中找不到字符串,但它不应该是代码本身
所以有两个解决方案
一个是直接在strings.xml的中补上忽略
"share" is translated here but not found in default locale
第二个是使用Gradle配置lintOptions来关闭指定的问题检查
"share" is translated here but not found in default locale