APP签名打包时遇到的问题
2017-02-28 11:57
232 查看
1,【Android】Error: Expected resource of type styleable [ResourceType]
解决办法
解决办法就是在使用 TypedArray 的方法处,加上 @SuppressWarnings(“ResourceType”) ,这样即可过滤该警告,可以正常通过签名编译。例如:
2,Error:(3) Error: “app_name” is not translated in “de” (German), “es” (Spanish), “fr” (French), “hu” (Hungarian), “ja” (Japanese), “ko” (Korean) [MissingTranslation]
解决办法
在出错的资源文件 标签里面添加属性
xmlns:tools=”http://schemas.android.com/tools” tools:ignore=”MissingTranslation”
例如
解决办法
解决办法就是在使用 TypedArray 的方法处,加上 @SuppressWarnings(“ResourceType”) ,这样即可过滤该警告,可以正常通过签名编译。例如:
@SuppressWarnings("ResourceType") public void initView() { TypedArray ta = mContext.obtainStyledAttributes(attrs); boolean hasBottomLine = ta.getBoolean(0, false); boolean hasTopLine = ta.getBoolean(1, false); ta.recycle(); }
2,Error:(3) Error: “app_name” is not translated in “de” (German), “es” (Spanish), “fr” (French), “hu” (Hungarian), “ja” (Japanese), “ko” (Korean) [MissingTranslation]
解决办法
在出错的资源文件 标签里面添加属性
xmlns:tools=”http://schemas.android.com/tools” tools:ignore=”MissingTranslation”
例如
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation"> <string name="app_name"></string> <string name="action_settings">Settings</string> <string name="hello_world">Hello world!</string> <item name="tag_id" type="id"></item> </resources>
相关文章推荐
- 在做App上线打包的时候遇到的问题
- Android 签名打包后的APP在后台运行时按icon导致程序重启的奇葩问题解决
- vue-cli打包成apk的完整方法和打包成app所遇到的问题
- 【Egret】Wing3发布移动APP功能,打包APK流程以及会遇到的问题
- 打包签名APK时遇到的问题
- HBuilder将Vue打包成App遇到的问题以及解决方案
- app 开发及其android studio 打包遇到的问题总结(二)
- Xcode8打包APP上传到APPStore遇到的问题
- 更新phonegap2.9打包的dojo开发页面的ios app遇到的问题
- APP签名打包后百度地图安卓SDK验证密钥失败的问题
- MM线下打包遇到的问题总结,以及安卓破包重新签名
- Xcode8打包APP上传到APPStore遇到的问题
- app打包上传遇到的问题
- APP打包遇到的问题和解决办法总结 <待更新>
- Android studio webApp打包遇到的一些问题
- react-native android打包签名release版apk遇到的问题
- AndroidStudio添加友盟推送的ProjectLibary后在打包签名时遇到的问题,
- 总结apk重打包签名安装中遇到的不能安装的问题
- 今天遇到打包安装app提示“应用自定义权限重名(签名证书不一致)”