有没有办法让 Android Studio 不将 .DS_Store 文件复制到 APK 中? [英] Is there a way to make Android Studio not copy .DS_Store files into APK?

查看:58
本文介绍了有没有办法让 Android Studio 不将 .DS_Store 文件复制到 APK 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我构建 APK 时,Android Studio 会复制这些冗余的 OSX 文件系统文件.DS_Store".有没有办法从 APK 包中过滤它们?

When I build the APK, Android Studio copies these redundant OSX file system files ".DS_Store". Is there a way to filter them from the APK bundle?

我尝试将 !.DS_Store 添加到编译器/资源模式字段中,但没有帮助.

I've tried adding !.DS_Store into the Compiler/Resource Patterns fields but it didn't help.

推荐答案

尝试将 .DS_Store 添加到 Compiler > Excludes 而不是比资源模式字段.

Try to add the .DS_Store to the Compiler > Excludes rather than the Resource Patterns field.

这篇关于有没有办法让 Android Studio 不将 .DS_Store 文件复制到 APK 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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