1.在build.gradle(Module: app) 中的defaultConfig{}中添加
multiDexEnabled true
2.在build.gradle(Module: app) 中的dependencies{}中添加
compile ‘com.android.support:multidex:1.0.0‘
3.在你自定义继承于Application的类里面重写attachBaseContext(Context base)方法
方法中加一行代码
MultiDex.install(this);
android studio:::解决方法数超过65536的方法,三步
原文:https://www.cnblogs.com/acg88688/p/9387485.html