转载请注明来源: http://blog.csdn.net/KjunChen/article/details/50043487

Android开发错误:Error:” ” is not translated in “en” (English) [MissingTranslation]如何处理?


今天(2015/11/25)在Android编译时发现这个错误,见下图

最终在StackOverFlow上找到了解决方法,大概有这么几种方法,现整理如下,供大家参考:

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开发交流群号 365532949
个人网站:http://junkchen.com

参考:
1. http://stackoverflow.com/questions/21118725/error-app-name-is-not-translated-in-af
2. http://stackoverflow.com/questions/11443996/lint-how-to-ignore-key-is-not-translated-in-language-errors

更多相关文章

  1. Ubuntu12.10编译Android(安卓)4.0.3的常见错误
  2. ActionBar的Splite模式
  3. Android开发5:短信发送器
  4. Wifi模块—源码分析Wifi初始化(Android(安卓)P)
  5. adb相关问题
  6. Android开发环境搭建常见问题(不定时更新)
  7. eclipse开发使用recyclerview步骤介绍
  8. android WebView在应用内打开网页的问题
  9. Android(安卓)ERROR: Unable to resolve dependency for

随机推荐

  1. sildingdraw的使用和需要注意的地方
  2. Android(安卓)Opencv 轮廓提取
  3. android进程(关闭自己和关闭其他进程)
  4. Android菜单menu控件大全
  5. Eclipse闪退/打不开/无法启动/一闪而过
  6. Android(安卓)sdk报错,unfortunately XXX
  7. Android(安卓)MediaPlayer Error/Info Co
  8. android Wifi的补充
  9. Android之MediaPlayer播放音乐并实现进度
  10. Android内核cmdline到系统prop属性传递