Hilt implements the boilerplate classes that are necessary to provide injection of Application
and Activity
Context
's and other Android specific objects when using Dagger 1.
This is not hosted on JCenter. You will need to include it as a local dependency or use https://jitpack.io/.
Place hilt-{version}.jar
into your appModule/libs
folder.
Update your build.gradle to include the following:
dependencies {
compile files('libs/hilt-{version}.jar');
}