Retrofit中@GET注解无法解析报错该如何解决
Retrofit @GET注解报错问题
开发过程中遇到@GET注解报错问题,初期未定位到具体原因,所用Java代码如下:
package com.example.goodNews; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.GET; public interface RetrofitAPI { @GET Call<NewsModal> getAllNews(@Url String url); }
编辑补充:已排查到问题原因,是
gradleBuild.Dependnecies文件中存在拼写错误导致。
内容的提问来源于stack exchange,提问作者Devyanshu Negi
相关产品推荐
相关产品推荐

