Closed MartinRajniak closed 3 years ago
Just to confirm, that activity you are passing in is annotated with @AndroidEntryPoint
? And I assume you are using the Gradle plugin or extending the generated Hilt activity class?
i got this error too and i did annotate my activity with that. Rolled back to 2.37 solve this. Btw, i use Compose so i assume it is because hilt-navigation-compose
is not updated to be compatible with 2.38.
Hi,
yes, activity is annotated like this
@AndroidEntryPoint class MainActivity : AppCompatActivity() {
Also I am using Android Hilt Gradle Plugin.
But I think @wiryadev is right - we are also using hilt navigation compose.
I'm also having this issue. Although I'm also using compose, I don't think this is related (might be wrong). I've a crash at startup (when using a custom entrypoint with jetpack startup and an application context to get some dependencies manually) caused by an IllegalStateException saying that my Application class does not implement GeneratedComponent . Rolling back to dagger 2.37 solved the issue for me as well
Thanks for the report, I believe this is happening due to #2784. Closing this as a duplicate assuming that is the case.
did anyone has an answer for this problem, Please
I got this error because i'm forgot implement: ksp(libs.hilt.compiler).
Hi, yes, activity is annotated like this
@AndroidEntryPoint class MainActivity : AppCompatActivity() {
Also I am using Android Hilt Gradle Plugin.
But I think @wiryadev is right - we are also using hilt navigation compose.
Adding the @AndroidEntryPoint
fixed this error , I am new to this so I checked the documentation which said "Marks an Android component class to be setup for injection with the standard Hilt Dagger Android components"
When I upgrade to version 2.38 (2.37 previously) I get this error:
AGP version: 7.1.0-alpha03