問題描述
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"是什么意思?意思是?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!