google logo


A fast dependency injector for Android and Java. (by google)


Basic Dagger2 repo stats
5 days ago

google/dagger is an open source project licensed under Apache License 2.0 which is an OSI approved license.

Dagger2 Alternatives

Similar projects and alternatives to Dagger2 based on common topics and language

  • GitHub repo AssistedInject

    Constructor-inject views during XML layout inflation [Moved to:]

  • GitHub repo Vigilante

    🛡️ Android security (camera/microphone dots indicators) app using Hilt, Animations, Coroutines, Material, StateFlow, Jetpack (Room, ViewModel, Paging, Security, Biometrics, Start-up) based on MVVM architecture.

  • GitHub repo DaggerViewModelExperiment

    [DEPRECATED, EXPERIMENT] This is a PoC example for app->activity->fragment subscoping with Subcomponents + ViewModel by SavedStateHandle (using AutoFactory). You shouldn't use this setup, because it breaks scoping. Refer to for a proper setup.

  • GitHub repo Guice

    Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 6 and above, brought to you by Google.

  • GitHub repo Tiger

  • GitHub repo Bootique

    Bootique is a minimally opinionated platform for modern runnable Java apps.

  • GitHub repo Toothpick

    A scope tree based Dependency Injection (DI) library for Java / Kotlin / Android.

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better Dagger2 alternative or higher similarity.


Posts where Dagger2 has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-04-04.
  • Any good open source repos with Hilt?
    Assisted inject
  • Dagger Hilt is now in beta (v2.33)!
  • Patterns of Distributed Systems (2020) | 2021-02-10
    I think this is a good one. Most recent Java/C# systems would have a full IoC container, but have no dynamically selected components (which is how frameworks like Dagger - - can exist). A lot of runtime reflection/calculation gets done for something that can be known at compile time.
  • Dagger 2.31 released
  • AssistedInject or AutoFactory ?
    Here is the commit ref: