What does quot;multiDexEnabled truequot; mean?(“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 Executable (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"是什么意思?意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:“multiDexEnabled true"是什么意思?意思是?


基础教程推荐
- AdMob 广告未在模拟器中显示 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iOS4 创建后台定时器 2022-01-01