Last active
May 9, 2022 22:14
-
-
Save imashnake0/1f6bdc2b354b5d74a4a22460f972346d to your computer and use it in GitHub Desktop.
Adding Hilt dependencies (2.41+)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
// ... | |
// Put `kapt` below the plugin. | |
id("com.google.dagger.hilt.android") | |
kotlin("kapt") | |
} | |
android { | |
// ... | |
} | |
kapt { | |
correctErrorTypes = true | |
} | |
dependencies { | |
// ... | |
// Hilt | |
implementation("com.google.dagger:hilt-android:2.4x") | |
kapt("com.google.dagger:hilt-compiler:2.4x") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
// ... | |
id("com.google.dagger.hilt.android") version "2.4x" apply false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also:
kapt
below the plugin.