在app的build gradle里面加

defaultConfig { multiDexEnabled true//解决65535 }


dependencies {

compile 'com.android.support:multidex:1.0.1'
}


然后自定义一个MyApplication extends MultiDexApplication ,

最后要在

 <application
        android:name=".MyApplication"//这里记得加
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
猜你喜欢
  • 2021-05-20
  • 2021-12-07
  • 2021-06-05
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案