How to enable multidexing with the new Android Multidex support library

后端 未结 14 2394
逝去的感伤
逝去的感伤 2020-11-21 12:57

I want to use the new Multidex support library to break the method limit for one of my apps.

With Android Lollipop Google introduced a multidex support library that

14条回答
  •  借酒劲吻你
    2020-11-21 14:02

    just adding this snipped in the build.gradle also works fine

    android {
       compileSdkVersion 22
       buildToolsVersion "23.0.0"
    
         defaultConfig {
             minSdkVersion 14 //lower than 14 doesn't support multidex
             targetSdkVersion 22
    
             **// Enabling multidex support.
             **multiDexEnabled true****
         }
    }
    

提交回复
热议问题