apk ionic 破损,IONIC Android apk文件大小太大!如何减少Android应用程式的大小?

I have developed the app using ionic 3 and now while generating android apk file it 's size getting way too big.

before the API integration The File Size Was 4.8MB once I Started API Interation I just Modified 10 Pages Then The APK File Size became 71 MB

Cordova Plugins I have Used

cordova-plugin-console

cordova-plugin-datepicker

cordova-plugin-device

cordova-plugin-network-information

cordova-plugin-splashscreen

cordova-plugin-statusbar

cordova-plugin-whitelist

cordova-plugin-x-socialsharing

cordova-sqlite-storage

es6-promise-plugin

ionic-plugin-keyboard

I unziped the APK file to know what's Happening i Looked Into into

The build Folder in assets/www/ folder weighing 357MB and it contains js files and MAP files

the Rest Assests folder In WWW whis contains the Css File is Of 4.5 MB

how to decrease the size of app for android apk?

解决方案

You should use --prod flag while building apk for production. It minimizes the size by compressing the files.

ionic build android --prod --release

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值