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

查看:178
本文介绍了由于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天全站免登陆