Enabling MultiDex Support in Android to achieve 65K+ methods in Eclipse

前端 未结 1 1348
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 02:52

I am trying to build Multidex apk in eclipse, and not able to succeed.

I tried following steps, for configuring Multidex support in android app:

  1. I have
1条回答
  •  臣服心动
    2021-01-05 03:33

    You have to modify build.gradle to add multiDexEnabled true under buildconfig, buildType or productFlavour sections

    defaultConfig {
        // The support library goes as back as Android-14, and is not required for 21+
        minSdkVersion 14 
    
        // Enabling multidex support.
        multiDexEnabled true
    }
    

    If you're building on old Ant, this is a blocking problem so you'll have to move to gradle or maven or use the old cumbersome solution

    http://android-developers.blogspot.com.es/2011/07/custom-class-loading-in-dalvik.html

    0 讨论(0)
提交回复
热议问题