Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android &引用;无法解析方法“@AuthInterceptorOkHttpClient_Android_Dagger 2_Dagger Hilt - Fatal编程技术网

Android &引用;无法解析方法“@AuthInterceptorOkHttpClient

Android &引用;无法解析方法“@AuthInterceptorOkHttpClient,android,dagger-2,dagger-hilt,Android,Dagger 2,Dagger Hilt,我正在尝试将dagger hilt集成到我的android项目中。我已经实现了下面链接中的库和步骤。 但是,我无法访问@AuthInterceptorOkHttpClient注释。我得到错误“无法解析方法”。为此,我需要添加另一个库。有经验的朋友能帮忙吗 AuthInterceptorKhttpClient是自定义接口。 @Qualifier @Retention(AnnotationRetention.BINARY) annotation class AuthInterceptorOkHttp

我正在尝试将dagger hilt集成到我的android项目中。我已经实现了下面链接中的库和步骤。 但是,我无法访问@AuthInterceptorOkHttpClient注释。我得到错误“无法解析方法”。为此,我需要添加另一个库。有经验的朋友能帮忙吗


AuthInterceptorKhttpClient
是自定义接口。

@Qualifier
@Retention(AnnotationRetention.BINARY)
annotation class AuthInterceptorOkHttpClient
在需要Hilt提供与依赖项相同类型的不同实现的情况下,它们提供了一个解决方案