So I followed the steps from https://developer.android.com/training/dependency-injection/hilt-android to add Dagger Hilt to my project.
It builds without error, but Android Studio shows errors for @HiltAndroidApp and also for @HiltViewModel, but some of them such as @AndroidEntryPoint are there
- I have tried
invalidate caches/restart - I have tried deleting
.idea,.gradle. - I have tried opening an older project which was working with
Hilt, and now that one also shows this error (and also builds without any problem) - I have tried using the latest version of
Hiltavailable,2.39.1, and also with2.38.1as it's what's used on the developer.android.com hilt documentation page
I'm out of ideas