How to make use of Android App Bundle in Ionic Applications?

Gopinath Kaliappan picture Gopinath Kaliappan · Apr 7, 2019 · Viewed 9.4k times · Source

Hi i am Working with android applications , When i try to upload developer console says the message , "enter image description here"

I hope we can reduce the app size through it , I tried in different ways i cannot get idea for that. Please help me out. Is there any Posibilities to do that.

Answer

Matti Lehtinen picture Matti Lehtinen · Jan 6, 2020

Is supported natively in cordova-android >= 8.1.0

ionic cordova build android --prod --release -- -- --packageType=bundle

Note the extra -- -- dashes before --packageType. First -- is required by cordova. Second one is required because there is another cli tool between (ionic).

If you use cordova without ionic:

cordova build android --prod --release -- --packageType=bundle