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
Dagger 2.43 no longer compatible with Java 8, but release notes don't mention it #3495
Comments
Thanks! And sorry for not mentioning this in the release notes. tl;dr is that Dagger 2.43 / 2.43.1 do require java 11, but the next version should go back to supporting java 8. This requirement was due to one of our dependencies in androidx recently requiring java 11, but fortunately they were willing to revert back to targeting java 8 (https://android-review.googlesource.com/c/platform/frameworks/support/+/2170525/). Sorry again for the confusion, I'll update the release notes to say something about this. |
Kotlin -> 1.7.0 Jetpack Compose -> 1.2.0 Hilt -> 2.42
I have a same error using hilt 2.44 when using ktlint. How can I resolve it? |
@skw4223 can you post the exact error you're seeing? |
java.lang.UnsupportedClassVersionError: dagger/hilt/android/plugin/HiltGradlePlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime on this error |
Summary
Dagger 2.43 (no Hilt) does not support Java 1.8 anymore
Context
Gradle 7.5 + JDK 1.8
Dagger 2.43.1 (happens since 2.43)
build.gradle.kts
Expected behavior
https://github.com/google/dagger/releases/tag/dagger-2.43 only mentions Hilt as a breaking change regarding the new JDK 11 requirement:
Actual behavior
Build does not work with JDK 1.8
java.lang.UnsupportedClassVersionError: dagger/spi/shaded/androidx/room/compiler/processing/javac/JavacBasicAnnotationProcessor has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
The text was updated successfully, but these errors were encountered: