Android导出签名应用程序包报错

标签 android xml api export apk

当我尝试为 google mao 导出已签名的应用程序包时,我在 res/value/string.xml 文件中收到此错误。我该怎么办?

app_name" is not translated in af, am, ar, be, bg, ca, cs, da, de, el, en-rGB, es, es-rUS, et, fa, fi, fr, hi, hr, hu, in, it, iw, ja, ko, lt, lv, ms, nb, nl, pl, pt, pt-rPT, ro, ru, sk, sl, sr, sv, sw, th, tl, tr, uk, vi, zh-rCN, zh-rTW, zu
Issue: Checks for incomplete translations where not all strings are translated
Id: MissingTranslation
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 attribute translatable="false" on the <string> element, or you can define all your non-translatable strings in a resource file called donottranslate.xml. Or, you can ignore the issue with a tools: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 variable ANDROID_LINT_COMPLETE_REGIONS.
You can tell lint (and other tools) which language is the default language in your res/values/ folder by specifying tools:locale="languageCode" for the root <resources> element in your resource file. (The tools prefix refers to the namespace declaration http://schemas.android.com/tools.)

最佳答案

"Window"> "Preferences"> "Android"> "Lint Error Checking" 中:

转到 MissingTranslation 行,并将其设置为警告:

enter image description here

关于Android导出签名应用程序包报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15631994/

相关文章:

android - 使用 Google Play 服务位置在 android 中唤醒过多的警报管理器

java - 我可以使用根相对 XPath 表达式来获取克隆节点中的节点吗?

android - 使用 Android API (com.google.android.gms.drive.DriveApi) 设置 Drive 文件的权限

android - 如何在 Android 中使用 kSOAP 序列化 double 值

android - 如何为 Py4A 构建 numpy?

java - axis2 导致 javax.xml.stream.XMLStreamException : element text content may not contain START_ELEMENT

java - 无法解析 R android studio 1.2.1.1

api - Quick Books API playground - 开发应用只能订阅沙盒公司

api - Twitter API - 验证 Twitter 实际上是 Twitter

android - 如何从 Android 应用程序运行猴子