简体   繁体   English

是app-debug.apk应用程序的实际大小吗?

[英]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个构建变体,分别是debugrelease 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并设置minifyEnabledtruebuild.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开发人员网站上的其他一些有用的文章:

Configure build variants 配置构建变体

Sign your app 签署您的应用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 React native:安装app-debug.apk - React native: Installing app-debug.apk app-debug.apk在磁盘上不存在 - app-debug.apk does not exist on disk Android Studio:从 Run 'app' 安装的应用程序和从 build/outputs/apk/debug/app-debug.apk 安装的应用程序是不同的 - Android Studio: The application installed from Run 'app' and application installed from build/outputs/apk/debug/app-debug.apk are different 从“app-debug.apk”更改生成的apk名称 - Change generated apk name from “app-debug.apk” 使用 app-debug.apk 安装在我的设备上 - using the app-debug.apk to install on my device app-debug.apk和app-debug-unaligned.apk之间的区别 - Difference between app-debug.apk and app-debug-unaligned.apk Ionic cordova build android –prod –release 只构建一个调试apk (app-debug.apk) - Ionic cordova build android –prod –release only builds a debug apk (app-debug.apk) flutter 停留在 Built build\app\outputs\flutter-apk\app-debug.apk - flutter stuck at Built build\app\outputs\flutter-apk\app-debug.apk 为什么我的APK文件显示app-debug.apk? 如何重命名? - Why does my APK file say app-debug.apk? How do I rename it? 系统找不到指定的文件“ \\ app \\ build \\ outputs \\ apk \\ app-debug.apk” - The system cannot find the file specified “\app\build\outputs\apk\app-debug.apk”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM