We don't need to have customized Application class which extends MultiDexApplication. Instead, we can have like this on AndroidManifest.xml
<application
android:name="android.support.multidex.MultiDexApplication"
android:hardwareAccelerated="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
And along with this on build.gradle(Module:app),
defaultConfig {
...
// Enabling multidex support.
multiDexEnabled true
}
dependencies {
...
compile 'com.android.support:multidex:1.0.2'
}
Thanks.