Android Studio 创建的 APK 比 Eclipse 创建的 APK 大.为什么? [英] APK created by Android Studio is larger than APK created by Eclipse. Why?

查看:25
本文介绍了Android Studio 创建的 APK 比 Eclipse 创建的 APK 大.为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我检查了 APK 的文件,发现来自 AS 的文件包含更多资源,例如:图像、xmls、...所有与全息主题相关的资源.我的问题是我怎样才能摆脱它们?我只想要 APK 中我添加的资源.

I checked the files of the APKs and I found that the one from AS has much more resources included like: images, xmls, ... all related to holo theme. My question is how can I get rid of them? I want in the APK only the resources added by me.

推荐答案

从 app.iml 中删除以下几行将解决我的问题.

Removing from app.iml the following lines will solve my issue.

  1. orderEntry type="library" Export="" name="appcompat-v7-20.0.0" level="project"
  2. orderEntry type="library" Export="" name="support-annotations-20.0.0" level="project"
  3. orderEntry type="library" Export="" name="support-v4-20.0.0" level="project"

这篇关于Android Studio 创建的 APK 比 Eclipse 创建的 APK 大.为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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