Android Multidex and the Dex Method Limit suggest change

Multidex by using MultiDexApplication directly

Use this option if you don’t need an Application subclass.

This is the simplest option, but this way you can’t provide your own Application subclass. If an Application subclass is needed, you will have to switch to one of the other options to do so.

For this option, simply specify the fully-qualified class name android.support.multidex.MultiDexApplication for the android:name property of the application tag in the AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.android.multidex.myapplication">
    <application
        ...
        android:name="android.support.multidex.MultiDexApplication">
        ...
    </application>
</manifest>

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents