由于 sym_keyboard_feedback_delete.png 文件,App Bundle 构建失败 [英] App Bundle build fails because of the sym_keyboard_feedback_delete.png file

查看:17
本文介绍了由于 sym_keyboard_feedback_delete.png 文件,App Bundle 构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Android 应用程序包构建我的应用程序.apk 生成得很好,但包不是由于保留文件或目录名称‘res’".奇怪的是,它挑出了这个仅存在于 Android pie (28) SDK 文件夹中的可绘制文件.我没有在我的模块中的任何地方使用它.

I am trying to build my app using the Android app bundle. The apk gets generated fine but the bundle doesn't due to a "reserved file or directory name 'res'". Oddly it singles out this drawable file which exists only in the Android pie (28) SDK folder. I'm not using it anywhere in my module.

sym_keyboard_feedback_delete.png

sym_keyboard_feedback_delete.png

我正在使用最新的 gradle 版本 (3.2.1) 并针对 Android Pie (28) 进行编译.有任何想法吗?

I'm using the latest gradle version (3.2.1) and compiling against Android Pie (28). Any ideas?

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':packageProductionReleaseBundle'.
> java.util.concurrent.ExecutionException: com.android.tools.build.bundletool.exceptions.BundleFileTypesException$FileUsesReservedNameException: 
File 'root/res/drawable-hdpi/sym_keyboard_feedback_delete.png' uses reserved file or directory name 'res'.

推荐答案

我已经找到了问题所在.我使用的库之一依赖于 Google Android 库 » 4.1.1.4,其中包含资源文件 sym_keyboard_feedback_delete.png 和其他占用 res 目录的资源.

I've figured out the problem. One of the libraries I am using had a dependancy on the Google Android Library » 4.1.1.4, which contains resource file sym_keyboard_feedback_delete.png and others that occupy the res directory.

从库依赖中排除这个模块已经解决了这个问题.

Excluding this module from the library dependancy has solved this issue.

 exclude group: 'com.google.android'

这篇关于由于 sym_keyboard_feedback_delete.png 文件,App Bundle 构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆