"Cannot resolve method" @AuthInterceptorOkHttpClient
"Cannot resolve method" @AuthInterceptorOkHttpClient
我正在尝试将 dagger-hilt 集成到我在 android 上的项目中。我已经在下面的 link 中实现了库和步骤。
但是,我无法访问 @AuthInterceptorOkHttpClient 注释。我收到错误“无法解析方法”。为此,我需要添加另一个库。有经验的朋友可以帮忙吗?
https://developer.android.com/training/dependency-injection/hilt-android?hl=ja_jp
AuthInterceptorOkHttpClient
为自定义界面。
@Qualifier
@Retention(AnnotationRetention.BINARY)
annotation class AuthInterceptorOkHttpClient
在您需要 Hilt 提供相同类型的不同实现作为依赖项的情况下,它们会给出 example。
我正在尝试将 dagger-hilt 集成到我在 android 上的项目中。我已经在下面的 link 中实现了库和步骤。 但是,我无法访问 @AuthInterceptorOkHttpClient 注释。我收到错误“无法解析方法”。为此,我需要添加另一个库。有经验的朋友可以帮忙吗?
https://developer.android.com/training/dependency-injection/hilt-android?hl=ja_jp
AuthInterceptorOkHttpClient
为自定义界面。
@Qualifier
@Retention(AnnotationRetention.BINARY)
annotation class AuthInterceptorOkHttpClient
在您需要 Hilt 提供相同类型的不同实现作为依赖项的情况下,它们会给出 example。