Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

png格式的图片不能全部删除掉,同时存在两张不同格式的图片 #67

Closed
fengyuehan opened this issue Apr 1, 2021 · 4 comments

Comments

@fengyuehan
Copy link

您好,我遇到这样的问题,部分转换的会把原来png格式的图片删掉,但是还有部分的没有删掉,会同时存在两张不同格式的图片。到mergeDebugResource这一步报错,很多张图片Duplicate resources。请问是什么原因造成这种现象,该怎么处理?

@smallSohoSolo
Copy link
Owner

如果gradle执行一半失败了,需要clean ci的工作空间(如果用的是jenkins)

@fengyuehan
Copy link
Author

如果gradle执行一半失败了,需要clean ci的工作空间(如果用的是jenkins)

只是在AS上进行常规的打包而已,没有用jenkins

@huazhouwujinbiao
Copy link

我也遇到同样的问题,尝试不删除,重命名也不行,猜测是打包过程中,文件被占用了,现在我的处理方法是如果删不掉原图则删掉转换后的webp文件,这样就不会同时存在两张图片了

@smallSohoSolo
Copy link
Owner

这个问题我们之前遇到过就是gradle 运行中强制被kill 掉,本质上解决不了。。。正常停止不会有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants