找不到Retrofit2的Retrofit类文件。

时间:2019-02-27 19:56:29

标签: android retrofit rx-java retrofit2

我的应用程序具有以下依赖项:

...version_set.last()

最初,我有不同版本的改装库,这些版本会导致错误。 Refrofit dependency issues我已经解决了这个问题。但是,现在在编译时,出现以下错误:

错误:无法访问改造 retrofit2的类文件。找不到翻版

导致此错误的方法是getClient方法。 据我所知,这是初始化

的正确方法
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
implementation 'com.google.android.material:material:1.1.0-alpha02'
implementation 'org.slf4j:slf4j-api:1.7.21'
implementation 'net.danlew:android.joda:2.7.2'
implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
implementation 'com.squareup.okhttp3:okhttp:3.7.0'
implementation 'io.reactivex.rxjava2:rxjava:2.2.3'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'

0 个答案:

没有答案