as打包报 MissingTranslation 的解决办法
来源:互联网 发布:arcgis js query post 编辑:程序博客网 时间:2024/06/07 22:49
Android studio打包生成android apk的时候遇到了编译问题,AS生成apk的时候自己走了translate in english的路线。
几个string.xml文件报错 string value is not translated in "zh"(Chinese)[MissingTranslation]。
通过查找解决方案,发现有三种方案可以解决:
1、 在string 里加attribute translatable="false":
<string name="hello_world" translatable="false">你好</string>
2、直接设定 string.xml文件内的resources的attribute:
<resources
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MissingTranslation">
<string name="hello_world">你好</string>
</resources>
3、 File–>Setting–>Editor下的Inspections–>Android Lint 下的 Incomplete translation勾选去掉(不是很推荐,这是在google上找到的一种方法,试了一下不可以)
阅读全文
0 0
- as打包报 MissingTranslation 的解决办法
- android studio 打包报 MissingTranslation 的 3种解决方式
- Android 解决MissingTranslation打包报错
- Unity 打包一类报错的解决办法
- Wex5打包报错的解决办法
- Android 打包报错 Error:(3) Error: "jdjg_str" is not translated in "zh" (Chinese) [MissingTranslation]
- as运行时 报错DELETE_FAILED_INTERNAL_ERROR和INSTALL_FAILED_UPDATE_INCOMPATIBLE的解决办法
- AS的签名打包
- shareSdk打包报错解决办法
- Android Studio打包报错"xxx"is not translated in "xxx"(xxx[MissingTranslation] "xxx" is translated here
- 打包出现错误Error:MissingTranslation 和 ResourceName
- apk资源文件编译报”MissingTranslation“错误
- as打包内存不足的解决方法
- 编译报错:"error C2220: warning treated as error - no 'object' file generated"的解决办法
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- hadoop格式化报错:"May not run daemons as root. Please specify HADOOP_NAMENODE_USER"的解决办法
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- wise打包java程序报错解决办法
- 遇到的小知识点(不断更新)
- Sentiment Analysis情感分析工具的使用(一):SentiStrength
- 第12周作业2(LeetCoed26)
- 欢迎使用CSDN-markdown编辑器
- Windows/Android/IOS WebRTC音视频总结(一)
- as打包报 MissingTranslation 的解决办法
- Linux常用命令介绍(目录命令)
- 安卓中PopupWindow中的EditText无法弹出软键盘解决
- awk命令入门
- Extjs中的combox每个属性的意思
- php数据库——查询分页数据
- CSS常见布局:左侧固定,右侧自适应
- 实用软件推荐
- git stash 命令