Enable Multidex for Android in Ionic framework

前端 未结 5 1005
不知归路
不知归路 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:15

    To fix this —
    
    Install couple of androidx plugins to solve the issue. So simply run the following commands in your project root:
    
    Add plugin to enable AndroidX in the project
    
    1. ionic cordova plugin add cordova-plugin-androidx
    
    2. Add plugin to patch existing plugin source that uses the Android Support Library to use AndroidX
    
    ionic cordova plugin add cordova-plugin-androidx-adapter
    
    3. Now run the following commands in your project root:
    
    cordova clean
    ionic cordova build android
    

    https://medium.com/@AnkitMaheshwariIn/ionic-android-error-while-merging-dex-archives-unable-to-merge-dex-in-ionic-3f6272899aab

提交回复
热议问题