[英]is app-debug.apk the application actual size?
my question is about the file generated by going to build
then build (APKS)
and locating
the file , getting an app-debug.apk
is that the actual size of my app? 我的问题是关于先
build
然后再build (APKS)
并locating
文件,然后得到一个app-debug.apk
的文件, app-debug.apk
是我的应用的实际大小吗?
After going through this process i found that my application is 7MB is that good enough? 经过这个过程后,我发现我的应用程序是7MB,足够好了吗?
There are 2 build variants which are debug
and release
. 有2个构建变体,分别是
debug
和release
。 Default build option is set to debug
and usually has bigger size. 默认构建选项设置为
debug
,通常具有更大的大小。 To build release
variant and reduce APK size you can use ProGuard
and set minifyEnabled
to true
in build.gradle
. 要建立
release
变种,减少APK的大小,你可以使用ProGuard
并设置minifyEnabled
到true
在build.gradle
。 To read more about using ProGuard visit link below: 要了解有关使用ProGuard的更多信息,请访问下面的链接:
How to use the ProGuard in Android Studio? 如何在Android Studio中使用ProGuard?
To find some ProGuard rules visit this link: 要查找一些ProGuard规则,请访问以下链接:
android-proguard-snippets Android的proguard的,片段
Some other useful articles in android developer website: android开发人员网站上的其他一些有用的文章:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.