Most visited

Recently visited

MultiDex

public final class MultiDex
extends Object

java.lang.Object
    android.support.multidex.MultiDex


猴子补丁the application context class loader为了从多个dex文件中加载类。 主要的classes.dex必须包含调用这个类方法所必需的类。 在应用程序apk中找到的名为classes2.dex,classes3.dex ...的二级dex文件将在第一次调用install(Context)后添加到类加载器中。

This library provides compatibility for platforms with API level 4 through 20. This library does nothing on newer versions of the platform which provide built-in support for secondary dex files.

摘要(Summary)

公共方法(Public methods)

static void install(Context context)

通过附加从应用程序apk加载的额外dex文件来修补应用程序上下文类加载器。

继承方法(Inherited methods)

From class java.lang.Object

公共方法(Public methods)

install

void install (Context context)

通过附加从应用程序apk加载的额外dex文件来修补应用程序上下文类加载器。 应该在ApplicationApplication调用此方法,有关更多解释和示例,请参见MultiDexApplication

参数(Parameters)
context Context: application context.
抛出异常(Throws)
RuntimeException if an error occurred preventing the classloader extension.

Hooray!