Android Dependency Injection with Hilt 

In this course, learn how to perform Dependency Injection using Hilt for Android. Starting from a blank slate we'll build a water tracking application, configuring Hilt to inject dependencies into various Android classes.

  • Course Instructor: Joe Birch
  •  Level: Intermediate
  •  Course Duration:  90 minutes
  • Sample Project Included: Yes
  • Learning Path: Android Architecture and Components

Course Objectives

In this master codelab, you’ll explore:

  • Learn how to inject dependencies into various Android classes (activities, fragments)
  • Learn how to declare and scope dependencies in Hilt Modules
  • Learn how to configure Jetpack dependency injections (viewmodel, workmanager etc)
  • Learn how to work with Hilt in UI tests
  • Learn how to migrate to Hilt from an existing project that uses Vanilla Dagger

Meet the instructor

Joe Birch

Content Author & Course Instructor

More courses by the instructor