AndroidStudio打包出现"xxx" is not translated in "zh" (Chinese) [MissingTranslation]
来源:互联网 发布:微软软件license模式 编辑:程序博客网 时间:2024/06/11 17:12
今天在打包apk时出现了"xxx" is not translated in "zh" (Chinese) [MissingTranslation]的错误。
解决方法:
看它的描述可以直接解决问题:
Incomplete translation
If an application has more than one locale, then all the strings declared in one language should also be translated in all other languages.
If the string should not be translated, you can add the attributetranslatable="false"
on the <string>
element, or you can define al
l your non-translatable strings in a resource file called donottranslate.xml
. Or, you can ignore the issue with atools:ignore="MissingTranslation"
attribute.
By default this detector allows regions of a language to just provide a subset of the strings and fall back to the standard language strings. You can require all regions to provide a full translation by setting the environment variableANDROID_LINT_COMPLETE_REGIONS
.
You can tell lint (and other tools) which language is the default language in yourres/values/
folder by specifying tools:locale="languageCode"
for the root<resources>
element in your resource file. (The tools
prefix refers to the namespace declarationhttp://schemas.Android.com/tools
.)
如果一个字符串不需要翻译,可以添加属性translatable="false"
在<string>标签里。如:
<string name="name" translatable="false">Android</string>或者把你不需要翻译的字符串统一放到一个donottranslate.xml
中去。或者给根标签加一个属性tools:ignore="MissingTranslation"
来忽略这个问题。如:<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
- AndroidStudio打包出现"xxx" is not translated in "zh" (Chinese) [MissingTranslation]
- AndroidStudio打包出现"xxx" is not translated in "zh" (Chinese) [MissingTranslation]
- is not translated in "zh" (Chinese) [MissingTranslation]
- 打包提示 xxx is not translated in "zh" (Chinese)
- Error:(107) Error: “xxx” is not translated in “zh” (Chinese) [MissingTranslation]
- Error: "select_city_zzdw" is not translated in "zh" (Chinese) [MissingTranslation]
- Error: "app_name" is not translated in "zh" (Chinese) [MissingTranslation]
- "app_name" is not translated in "zh" (Chinese) [MissingTranslation]解决办法
- Error: "***" is not translated in "zh" (Chinese) [MissingTranslation]
- Android 打包报错 Error:(3) Error: "jdjg_str" is not translated in "zh" (Chinese) [MissingTranslation]
- 提示xxx is not translated in "zh" (Chinese)==
- Error:(3) Error: "app_name" is not translated in "zh" (Chinese) [MissingTranslation]
- Error:(4) Error: "app_key_ut" is not translated in "zh-CN" (Chinese: China) [MissingTranslation]
- 解决Error:(3) Error: "app_name" is not translated in "zh" (Chinese) [MissingTranslation]
- android打包时出现***is not translated in "zh-rCN" (Chinese: China)
- APK打包过程中出现Error:"app_name" is not translated in "zh" (Chinese)[Missing Translation]
- android打包问题:xxx is not translated in zh解决办法
- Android Studio打包报错"xxx"is not translated in "xxx"(xxx[MissingTranslation] "xxx" is translated here
- JNI中的Array创建与C++回调Java方法
- TensorFlow MNIST机器学习入门 input_data.py only integer scalar arrays can be converted to a scalar
- python类定义的讲解
- UE4与WEB服务器交互(json)
- 关于导航栏透明和渐变的一些设置
- AndroidStudio打包出现"xxx" is not translated in "zh" (Chinese) [MissingTranslation]
- 一道简单而又不简单的面试题
- 在iOS中创建React-Native页面,并跳转到原生页面
- Android线程池的使用
- 10603
- vue引入 jquery 插件
- linux下关于mysql安装的一些问题
- Android studio 2.2 logcat 不打印log的问题
- -----------------------python&Tensorflow分割线------------------