zoukankan      html  css  js  c++  java
  • android:Error:” ” is not translated in “en” (English) [MissingTranslation]处理方法(转)

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

    最终在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
        }

    暂时发现这几种方法都可以解决,我都测试通过。

    参考:
    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

    本文转自:https://blog.csdn.net/KjunChen/article/details/50043487

  • 相关阅读:
    C语言I博客作业04
    C语言II博客作业04
    C语言II作业03
    C语言II博客作业02
    C语言II博客作业01
    第一周C语言作业
    C语言I博客作业02
    C语言I博客作业08
    C语言I博客作业07
    C语言I博客作业06
  • 原文地址:https://www.cnblogs.com/yongdaimi/p/12738920.html
Copyright © 2011-2022 走看看