0

I am trying to integrate dagger-hilt on my project on android. I have implemented the libraries and steps in the link below. However, I cannot access the @AuthInterceptorOkHttpClient annotation. I get the error "Cannot resolve method". For this I need to add another library. Can experienced friends help?

https://developer.android.com/training/dependency-injection/hilt-android?hl=ja_jp

Ümit Bülbül
  • 512
  • 2
  • 15

1 Answers1

1

AuthInterceptorOkHttpClient is custome interface.

@Qualifier
@Retention(AnnotationRetention.BINARY)
annotation class AuthInterceptorOkHttpClient

They give an example in cases where you need Hilt to provide different implementations of the same type as dependencies.

Amjad Alwareh
  • 2,926
  • 22
  • 27