MultiDex NoClassDefFound error

后端 未结 8 819
醉梦人生
醉梦人生 2020-11-29 05:52

I have converted my application into MultiDex to bear with 64k dex limit. Now it looks like this:

public class App extends MultiDexApplication {

private App         


        
8条回答
  •  清酒与你
    2020-11-29 06:38

    I also got this kind of problem. Solution in my case was: In my build.gradle file, there were multiple entries of compile 'com.android.support:multidex:1.0.0' in dependencies. like:

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

    just put only one compile 'com.android.support:multidex:1.0.0' like:

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

提交回复
热议问题