繁体   English   中英

Retrofit2:adapter-rxjava证书发行

[英]Retrofit2:adapter-rxjava Certificate issue

我的android项目中具有以下依赖项:

implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.2.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
implementation 'com.squareup.okhttp3:okhttp:3.7.0'
implementation 'io.reactivex.rxjava2:rxjava:2.2.7'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'

但是,“ com.squareup.retrofit2:adapter-rxjava2:2.4.0”依赖关系导致与改造库相关的问题或冲突。 当我发出网络请求时,它会导致证书错误。 但是,当我删除相同的依赖项时,一切似乎都可以正常工作。

尝试使用相同版本的Retrofit依赖项,例如目前最新版本为2.5.0

implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM