Skip to content

Instantly share code, notes, and snippets.

@tdcolvin
Last active June 9, 2023 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdcolvin/b77b1dd6a38b732041e6ffca8df6fce6 to your computer and use it in GitHub Desktop.
Save tdcolvin/b77b1dd6a38b732041e6ffca8df6fce6 to your computer and use it in GitHub Desktop.
plugins {
id 'kotlin-kapt'
id 'com.google.dagger.hilt.android'
}
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
}
dependencies {
implementation "com.google.dagger:hilt-android:2.44.2"
kapt "com.google.dagger:hilt-compiler:2.44.2"
}
// Allow references to generated code
kapt {
correctErrorTypes true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment