androidstudio打包失败

今天安卓应用打包的时候出现了俩个报错的问题,在这里记录总结一下:

问题一:

Error:(5) Error: "xxx" is not translated in "en" (English), "es" (Spanish) [MissingTranslation]


像这种类型的问题:Error:(5) Error: "hello_blank_fragment" is not translated in "en" (English), "es" (Spanish) [MissingTranslation]

解决方案就是在 ./values/strings 文件中的根节点<resource>中添加:

xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation"
问题二:

Error:Resource named 'xxx' does not start with the project's resource prefix 'xxx'; rename to 'xxx'?[ResourceName]
像这种类型的问题:Error:Resource named 'activity_img_sel' does not start with the project's resource prefix 'imgsel'; rename to 'imgselActivity_img_sel'?[ResourceName]


像这种类型的问题:Error:Resource named 'activity_img_sel' does not start with the project's resource prefix 'imgsel'; rename to 'imgselActivity_img_sel'?[ResourceName]

扫描二维码关注公众号,回复: 3174582 查看本文章

解决方案:


版权声明:本文为博主原创文章,未经博主允许不得转载。

猜你喜欢

转载自blog.csdn.net/smallredzi/article/details/78837610
今日推荐