【问题标题】:The import retrofit2.converter cannot be resolved导入 retrofit2.converter 无法解决
【发布时间】:2016-12-20 22:24:12
【问题描述】:

我无法解决错误 - import retrofit2.converter 无法解决

我正在使用 Eclipse Mars 并添加了以下 JAR 文件作为外部 JAR

改造-2.1.0.jar moshi-1.2.0.jar

它解决了“import retrofit2.Retrofit;” ..但无法解析“import retrofit2.converter.moshi.MoshiConverterFactory;”

我没有使用 Maven .. 只是添加 JAR 文件 .. 有什么想法吗?

谢谢,

贾格迪什

【问题讨论】:

    标签: java eclipse retrofit2 moshi


    【解决方案1】:

    在 pom.xml 中添加了以下依赖项 .. 帮助解决了问题。

    <dependency>
        <groupId>com.squareup.retrofit2</groupId>
        <artifactId>retrofit</artifactId>
        <version>2.1.0</version>
    </dependency>
    

    【讨论】:

      猜你喜欢
      • 2021-11-20
      • 2013-03-11
      • 1970-01-01
      • 2019-02-12
      • 2021-09-13
      • 2020-01-23
      • 2020-12-16
      • 2014-09-04
      • 2022-01-24
      相关资源
      最近更新 更多