Java Code Examples for androidx.multidex.MultiDex#install()

The following examples show how to use androidx.multidex.MultiDex#install() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SampleApplicationLike.java    From Bugly-Android-Demo with Apache License 2.0 5 votes vote down vote up
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
@Override
public void onBaseContextAttached(Context base) {
    super.onBaseContextAttached(base);
    // you must install multiDex whatever tinker is installed!
    MultiDex.install(base);

    // TODO: 安装tinker
    Beta.installTinker(this);
}
 
Example 2
Source File: AcgClubLike.java    From AcgClub with MIT License 5 votes vote down vote up
@Override
public void onBaseContextAttached(Context base) {
  super.onBaseContextAttached(base);
  MultiDex.install(base);
  Beta.installTinker(this);

  if (mCommonApplicationLike == null) {
    mCommonApplicationLike = new CommonApplicationLike(TinkerManager.getApplication());
  }
}
 
Example 3
Source File: MultidexAndroidJunitRunner.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@Override public void onCreate(Bundle arguments) {
  MultiDex.install(getTargetContext());
  super.onCreate(arguments);
}
 
Example 4
Source File: AptoideApplication.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@Override protected void attachBaseContext(Context base) {
  super.attachBaseContext(base);
  MultiDex.install(this);
}
 
Example 5
Source File: PocketPlaysApplication.java    From Pocket-Plays-for-Twitch with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example 6
Source File: FlutterExampleApplication.java    From pspdfkit-flutter with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example 7
Source File: MApplication.java    From MyBookshelf with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example 8
Source File: AnalyticsApplication.java    From Lunary-Ethereum-Wallet with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example 9
Source File: MyApplication.java    From loco-answers with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example 10
Source File: AnalyticsApplication.java    From Lunary-Ethereum-Wallet with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example 11
Source File: GuardaApp.java    From guarda-android-wallets with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example 12
Source File: ArcusApplication.java    From arcusandroid with Apache License 2.0 4 votes vote down vote up
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example 13
Source File: AopApp.java    From DoraemonKit with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(base);
}
 
Example 14
Source File: KcaApplication.java    From kcanotify with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example 15
Source File: ApplicationLoader.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example 16
Source File: MyApp.java    From TemplateAppProject with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    //解决4.x运行崩溃的问题
    MultiDex.install(this);
}
 
Example 17
Source File: MainApplication.java    From CrossMobile with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
        MultiDex.install(this);
}
 
Example 18
Source File: App.java    From prayer-times-android with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);

    MultiDex.install(this);
}
 
Example 19
Source File: MApplication.java    From a with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example 20
Source File: MyApp.java    From TemplateSimpleProject with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    //解决4.x运行崩溃的问题
    MultiDex.install(this);
}