-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Kotlin 1.5.20 #2684
Comments
Did you forget to apply the Gradle Plugin (dagger.hilt.android.plugin)? |
I am using the Gradle plugin. Until Kotlin 1.5.10 there are no problems with the build. It just started with 1.5.20-M1 and -RC. I can switch to 1.5.10 and the build will work. |
i also have this issue and @Jeff11 is rith its working fine with 1.5.10 |
Also with 1.5.20-RC not working compiler argument for disabling InstallIn check:
|
This sounds like a bug in the kotlin/kapt plugin rather than Hilt. In particular, FWIW, it looks like the processing options set through kapt {
javacOptions {
// These options are normally set automatically via the Hilt Gradle plugin, but we
// set them manually to workaround a bug in the Kotlin 1.5.20
option("-Adagger.fastInit=ENABLED")
option("-Adagger.hilt.android.internal.disableAndroidSuperclassValidation=true")
}
} |
kapt.use.worker.api=false |
I've filed a bug with kotlin here: https://youtrack.jetbrains.com/issue/KT-47416 |
Due to google/dagger#2684
It'll decrease build speed though:
@bcorso sulution works. 👍 |
There's a bug in kotlin, tracked here: https://youtrack.jetbrains.com/issue/KT-47416 This workaround is applied in this commit: google/dagger#2684 (comment)
Kotlin 1.5.21 fixes the issue for me |
With Kotlin 1.5.20-RC I get this error.
Works with Kotlin 1.5.10.
Dagger version 2.37
The text was updated successfully, but these errors were encountered: