【问题标题】:Android - retrofitAndroid - 改造
【发布时间】:2019-11-26 09:25:46
【问题描述】:

我需要以下旧版本的 android 3.5 版本依赖项。

compile 'com.squareup.retrofit2:retrofit:2.3.0'

compile 'com.squareup.retrofit2:convertor-gson:2.3.0

【问题讨论】:

  • 请发布最少的代码,以便我们为您提供帮助。

标签: android json retrofit


【解决方案1】:

这些是Retrofit 的最新依赖项:

implementation 'com.squareup.retrofit2:retrofit:2.3.0'

implementation 'com.squareup.retrofit2:converter-gson:2.3.0'

【讨论】:

  • 感谢您的回复。我已经尝试过了,但它显示无法解析“app@debug/Compile 类路径”的依赖项
  • 这是因为你在其他依赖项中使用了compile
  • 在您的build.gradle (app) 中使用implementation 而不是compile
猜你喜欢
  • 1970-01-01
  • 2014-05-12
  • 2013-11-16
  • 2015-12-04
  • 1970-01-01
  • 2017-04-29
  • 2021-08-14
  • 2019-05-06
  • 2015-02-19
相关资源
最近更新 更多