Enable Multidex for Android in Ionic framework

前端 未结 5 1004
不知归路
不知归路 2021-01-13 06:30

Is there a way to set enable multidex (https://github.com/casidiablo/multidex) for Android if I build apps using Ionic Framework ?

5条回答
  •  孤城傲影
    2021-01-13 07:07

    For people using androidx and cordova-android: 8 is interested in this solution, I created a fork that supports the file structure and class names of these new versions. Also works with Ionic.

    cordova plugin add --save https://github.com/c00/cordova-multidex
    

    Note that this is only relevant if you are still supporting a minSdk less than 21. At 21, multidexing is no longer needed as there is some built-in fix for it. So in that case, just remove the multidex plugin (if you had it) and things should work.

提交回复
热议问题