在 Ionic 框架中为 Android 启用 Multidex [英] Enable Multidex for Android in Ionic framework

查看:41
本文介绍了在 Ionic 框架中为 Android 启用 Multidex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法设置启用 multidex (https://github.com/casidiablo/multidex) 对于 Android,如果我使用 Ionic 框架构建应用程序?

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

推荐答案

一个插件 启用多重索引.要安装它,请运行:

There is a plugin that enables multidex. To install it, run:

cordova 插件添加 --save https://github.com/jwall149/cordova-multidex

然后尝试重新构建.构建可能需要比平时更长的时间,但您的应用程序应该可以顺利编译.

And try building again. The build may take a little longer than usual, but your app should compile without troubles.

这篇关于在 Ionic 框架中为 Android 启用 Multidex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆