APK文件中包含哪些文件 [英] Which files are included in APK file

查看:34
本文介绍了APK文件中包含哪些文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Android 应用中有很多未使用的图像.这些图像放置在项目根目录中的单独文件夹中.它们没有在项目的任何地方使用,但我需要保留它们.

I have a lot of unused images in my android app. Those images are placed in separate folder in project root directory. They are not being used anywhere in a project, but I need to keep them.

我担心的是这些未使用的图像会包含在 apk 文件中吗?由于它们很多并且增加了apk文件的大小.

My concern is that will these unused images be included in the apk file? Since there are a lot of them and increase the size of apk file.

推荐答案

存储在根目录(包括自定义子目录)中的文件包含在 APK 中.在项目根目录中拥有项目所需的自己的文件是非常常见的做法.例如,源许可文件、待办事项列表、包含高分辨率图像的目录(您可以从中创建分布式图像)等.

Files stored in the root directory (including custom subdirectories) are not included in the APK. It is very common practice to have your own files needed for the project in the project root. For example, a source license file, a to-do list, a directory with high-resolution images that you create distributed images out of, etc.

Android 使用这些具有特殊含义的子目录:

Android uses these subdirectories with special meaning:

  • src/
  • res/
  • 资产/
  • 库/
  • gen/
  • bin/

使用其他子目录名称,Android 将忽略您的文件.

Using a subdirectory name other than those, Android will ignore your files.

这篇关于APK文件中包含哪些文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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