Android开发错误:Error:” ” is not translated in “en” (English) [MissingTranslation]处理方法?
来源:互联网 发布:沈阳网络系统安全技术 编辑:程序博客网 时间:2024/05/21 10:46
原文:http://blog.csdn.net/kjunchen/article/details/50043487
在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 0
- Android开发错误:Error:” ” is not translated in “en” (English) [MissingTranslation]处理方法?
- Android开发错误:Error:” ” is not translated in “en” (English) [MissingTranslation]处理方法?
- Android开发错误:Error:” ” is not translated in “en” (English) [MissingTranslation]如何处理?
- 【转载】Android开发错误:Error:” ” is not translated in “en” (English) [MissingTranslation]如何处理?
- Android开发错误:Error:” ” is not translated in “en” (English) [MissingTranslation]如何处理?
- Error: "ssdk_instapager_login_html" is not translated in "en" (English) [MissingTranslation]
- 解决Error:” ” is not translated in “en” (English) [MissingTranslation]
- is not translated in "en" (English) [MissingTranslation]
- Error:(xx) Error: "xxxxxxx" is not translated in "en" (English)[MissingTranslation]
- Error:(2) Error: "app_name" is not translated in "en" (English) [MissingTranslation]
- Error:(16) Error: "days" is not translated in "en" (English) [MissingTranslation]
- Error:(xx) Error: "xxxxxxx" is not translated in "en" (English)[MissingTranslation]
- Error:(xx) Error: "xxxxxxx" is not translated in "en" (English)[MissingTranslation]
- Error:(xx) Error: "xxxxxxx" is not translated in "en" (English)[MissingTranslation]
- Android Studio打包APK时出现 is not translated in "en" (English) [MissingTranslation]
- Android Studio打包APK时出现 is not translated in "en" (English) [MissingTranslation]
- "app_name" is not translated in "en" (English)
- "xxx" is not translated in "en" (English)
- Spring、Spring MVC、MyBatis 整合文件配置详解
- 智能一代云平台(二十六):tomcat集群搭建中的那些事儿
- java-构造函数
- Java的文件读写操作
- centos7系统下安装php-memcached拓展及简单使用
- Android开发错误:Error:” ” is not translated in “en” (English) [MissingTranslation]处理方法?
- 好看的彩色二维码
- 金蝶EAS,后台抛出业务异常,中断程序
- 二级下拉框
- vi的使用--使用vi查找和替换
- 216Combination Sum III
- 设计模式-设计准则
- shell expect自动化创建用户,修改密码,多台机器一键免秘钥登录
- 全志R16 PK RK3128(多线程优化)草稿