Multidex for 64K limit problem

about

  • Android app originally designed with limit of 64K methods.
  • As app became bigger, android developer supported multidex for this problem.
  • So to use a lot of methods, you need to use Multidex in the code.

how to

Gradle configuration

android{
   ...
   defaultConfig{
      ...
      multiDexEnabled true
      ...
   }
   ...
}

Dependencies configuration in Gradle

dependencies{
   ...
   compile 'com.android.support:multidex:1.0.0'
   ...
}

AndroidManifest.xml   file Configuration

<application
   android:name="android.support.multidex.MultiDexApplication"
   ...>
   ...
</application>

 

Leave A Comment

Your email address will not be published. Required fields are marked *