"multiDexEnabled true"是什么意思?意思是? [英] What does "multiDexEnabled true" mean?

查看:2553
本文介绍了"multiDexEnabled true"是什么意思?意思是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android gradle中的"multiDexEnabled true"是什么意思.我们为什么要使用这个?如果启用它会产生什么影响?

What is meant by "multiDexEnabled true" in Android gradle. Why do we use this? What is the effect if it is enabled?

推荐答案

Android应用程序(APK)文件中包含可执行字节码文件 Dalvik可执行(DEX)文件的形式,其中包含已编译的 用于运行您的应用的代码. Dalvik可执行规格限制 单个DEX中可以引用的方法总数 文件到65,536,包括Android框架方法,库方法, 和您自己的代码中的方法.超过此限制要求 您配置您的应用构建过程以生成多个DEX 文件,称为multidex配置.

Android application (APK) files contain executable bytecode files in the form of Dalvik Executable (DEX) files, which contain the compiled code used to run your app. The Dalvik Executable specification limits the total number of methods that can be referenced within a single DEX file to 65,536, including Android framework methods, library methods, and methods in your own code. Getting past this limit requires that you configure your app build process to generate more than one DEX file, known as a multidex configuration.

您应该阅读有关 使用64K以上方法构建应用的官方指南

You should read official guide line about Building Apps with Over 64K Methods

这篇关于"multiDexEnabled true"是什么意思?意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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