問題描述
Android gradle 中的multiDexEnabled true"是什么意思.我們?yōu)槭裁匆褂眠@個?啟用后有什么效果?
What is meant by "multiDexEnabled true" in Android gradle. Why do we use this? What is the effect if it is enabled?
推薦答案
Android 應(yīng)用程序 (APK) 文件包含可執(zhí)行字節(jié)碼文件Dalvik Executable (DEX) 文件的形式,其中包含已編譯的用于運(yùn)行您的應(yīng)用程序的代碼.Dalvik 可執(zhí)行文件規(guī)范限制單個 DEX 中可以引用的方法總數(shù)文件為 65,536,包括 Android 框架方法、庫方法、和您自己的代碼中的方法.超過這個限制需要您配置您的應(yīng)用程序構(gòu)建過程以生成多個 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.
您應(yīng)該閱讀有關(guān)使用超過 64K 方法構(gòu)建應(yīng)用程序的官方指南
You should read official guide line about Building Apps with Over 64K Methods
這篇關(guān)于“multiDexEnabled true"是什么意思?意思是?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!