美文网首页
Android开发错误:Error:” ” is not tra

Android开发错误:Error:” ” is not tra

作者: 方盒 | 来源:发表于2016-12-19 14:30 被阅读129次

以下4个方法选一
1、尝试添加translatable=”[true / false]”
<string name="junkchen" translatable="false">Junk Chen!</string>
2、在resources中添加属性
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation" >
3、指定语言
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="en" > </resources>
4、使用Android studio可以在build.gradle中的android中添加lintOptions
lintOptions { disable 'MissingTranslation' }
或者
lintOptions { checkReleaseBuilds false abortOnError false }

相关文章

网友评论

      本文标题:Android开发错误:Error:” ” is not tra

      本文链接:https://www.haomeiwen.com/subject/kpdtvttx.html