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);

相关文章:

  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2022-02-10
  • 2022-12-23
  • 2021-10-16
猜你喜欢
  • 2021-11-03
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
相关资源
相似解决方案