排除apk文件中的预定义资源 [英] Exclude pre-defined resource in apk file

查看:25
本文介绍了排除apk文件中的预定义资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

排除apk文件中预定义的资源

Exclude pre-defined resource in apk file

我使用 Android Studio 创建了一个空白项目.然后生成 apk 文件,查看该文件,我可以看到:在 res/drawable 文件夹中有许多不需要的文件,例如:abc_ic_clear_holo_light.xml、abc_ic_clear.xml,在 res/drawable-mdpi-v4 文件夹中有许多不需要的图像,例如:abc_ab_bottom_solid_dark_holo.9.png, abc_ab_bottom_solid_light_holo.9.png.

I created a blank project with Android Studio. And then generated apk file, look inside that file I can see : in res/drawable folder there are many unwanted files like : abc_ic_clear_holo_light.xml, abc_ic_clear.xml, and in res/drawable-mdpi-v4 folder there many unwanted images like: abc_ab_bottom_solid_dark_holo.9.png, abc_ab_bottom_solid_light_holo.9.png.

  1. 如何删除所有这些文件?
  2. 如何禁用创建 drawable-hdpi、drawable-mdpi-v4(因为我使用 webview 来显示应用程序的 ui,所以我不需要使用 android native 支持多屏)

推荐答案

您可以尝试删除引用的库(好像您在项目中添加了 android-support-v7).

You can try to remove the referenced libary (seems like you added android-support-v7 to your project).

这篇关于排除apk文件中的预定义资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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