forked from square/dagger
-
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
Hilt 2.38 @AndroidEntryPoint/@HiltAndroidApp transform doesn't run on non-test code on AGP 7+ #2784
Labels
Comments
This was referenced Jul 26, 2021
Leaving this open until 2.38.1 goes out. |
2.38.1 has been released now, so closing this. |
thank you now it works. mine now is kotlin 1.5.21 and hilt 2.38.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A bug in 2.38 is causing the bytecode transform to miss non-test code when running on AGP 7+. This causes the base class of those
@AndroidEntryPoint
types to remain the declared base class as opposed to the Hilt one, which means injection won't occur on these classes. This is unfortunately generally a runtime error.A fix will be coming shortly as well as a patch release 2.38.1 to fix this.
The text was updated successfully, but these errors were encountered: