有没有一种方法可以使Android Studio不将.DS_Store文件复制到APK中? [英] Is there a way to make Android Studio not copy .DS_Store files into APK?
本文介绍了有没有一种方法可以使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屋!
查看全文