什么是 Android 中的 bin 文件夹? [英] What is a bin folder for in Android?
问题描述
我听说 bin 文件夹是二进制文件并且是可执行的.但我不太确定它如何影响我的整个项目?除了包含我的 apk 之外,它似乎复制了我所有的图像资源,从而使我的项目大小几乎翻了一番.
I heard that a bin folder is a binary and is executable. But I'm not quite sure how it affects my project as a whole? It seems to duplicate all my image resources besides having my apk in it thereby almost more than doubling my project size.
有人可以理解它的主要功能以及为什么它不应该被篡改/删除吗?
Can someone please understand it's primary functionality and why it should not be tampered/deleted?
推荐答案
它由编译器生成,其中包含所有 .class
文件以生成 .apk
文件.一旦成功构建,您的调试应用程序文件 .apk
也会驻留在那里.
It's generated by the compiler, which contains all of the .class
files to produce an .apk
file. Your debug application file, .apk
, resides there too once it is built successfully.
如果您在版本控制系统(例如 Git、SVN)中管理您的项目,您可以忽略 bin
和 gen
目录,因为它们是由您的 IDE 自动生成的.
In case you are managing your projects in a Version Control System (e.g. Git, SVN), you may ignore the bin
and gen
directories, since they are generated by your IDE automatically.
这篇关于什么是 Android 中的 bin 文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!