question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for MultiDexApplication

See original GitHub issue

Please add support for MultiDexApplication in DaggerApplication. This would only require extending from MultiDexApplication instead of Application. Or is there a good way to use this that I’m not aware of?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

10reactions
ronshapirocommented, Jan 17, 2018

@JakeWharton is right, but what is likely to be even smaller (and even less likely to change) is to keep the DaggerApplication base class and copy the contents of the MultidexApplication implementation. This is a documented approach by the MultidexApplication docs

6reactions
imohamedsolimancommented, May 20, 2020

@Ezike from docs if you don’t have the option to extend MultidexApplication you can do this

class MyApplication : SomeOtherApplication() {

    override fun attachBaseContext(base: Context) {
        super.attachBaseContext(base)
        MultiDex.install(this)
    }
}

Docs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable multidex for apps with over 64K methods
Learn how to enable an app configuration known as multidex, which allows your app to build and read multiple DEX files.
Read more >
gradle - How to enable multidexing with the new Android ...
Add android-support-multidex.jar to your project. The jar can be found in your Android SDK folder /sdk/extras/android/support/multidex/library/libs.
Read more >
Understanding and Solving the Multidex Problem in Android
This article will help readers understand the multidex problem in ... Therefore, you do not need to add the Multidex support library.
Read more >
Understanding Multidex in Android - MindOrks
In this blog, we will learn how to use Multidex in Android. Basically, Multidex is used when we want to add more than...
Read more >
Multidex in Android - GeeksforGeeks
... Android API version below 21 add the following dependency to your build.gradle file. implementation 'com.android.support:multidex:1.0.3'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found