Last active
May 1, 2019 06:47
-
-
Save tendoasan/d3d410394d6f43be814f44ca688e96d3 to your computer and use it in GitHub Desktop.
[Android-Studio] #Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App extends Application { | |
@Override | |
protected void attachBaseContext(Context base) { | |
super.attachBaseContext(base); | |
// 配置 Multidex 3 | |
MultiDex.install(this); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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