Skip to content

Instantly share code, notes, and snippets.

@tendoasan
Last active May 1, 2019 06:47
Show Gist options
  • Save tendoasan/d3d410394d6f43be814f44ca688e96d3 to your computer and use it in GitHub Desktop.
Save tendoasan/d3d410394d6f43be814f44ca688e96d3 to your computer and use it in GitHub Desktop.
[Android-Studio] #Android
public class App extends Application {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
// 配置 Multidex 3
MultiDex.install(this);
}
}
android {
// 配置 Multidex 1
multiDexEnabled true
}
dependencies {
// 配置 Multidex 2
implementation 'com.android.support:multidex:1.0.1'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment