I am using dagger in my application for dependency injection, and I am getting this ANR in Firebase Crashlytics, as per the logs it seems the app is in background state 100% times when this is occuring.

No thread heavy process is taking place before the initializing of AppComponent, I am not sure why is this happening, any help will be appreciated

main (runnable):tid=1 systid=26088 at com.google.common.collect.ImmutableMap$Builder.ensureCapacity(ImmutableMap.java:1) at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:420) at com.MyProject.ui.base.di.DaggerAppComponent.getMapOfClassOfAndProviderOfAndroidInjectorFactoryOf(DaggerAppComponent.java:1229) at com.MyProject.ui.base.di.DaggerAppComponent.getDispatchingAndroidInjectorOfBroadcastReceiver(DaggerAppComponent.java:1419) at com.MyProject.ui.base.di.DaggerAppComponent.injectDaggerApplication(DaggerAppComponent.java:3089) at com.MyProject.ui.base.di.DaggerAppComponent.inject(DaggerAppComponent.java:3041) at com.MyProject.ui.base.di.DaggerAppComponent.inject(DaggerAppComponent.java:496) at dagger.android.DaggerApplication.injectIfNecessary(DaggerApplication.java:78) at dagger.android.DaggerApplication.onCreate(DaggerApplication.java:53) at com.MyProject.ui.base.MyApp.onCreate(MyApp.kt:63) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7294) at android.app.ActivityThread.access$1700(ActivityThread.java:299) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2184) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:264) at android.app.ActivityThread.main(ActivityThread.java:8312) at java.lang.reflect.Method.invoke(Native method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

I have tried to replicate this by putting app in background for long duration but it does not reproduce like this.