Home > Mobile >  cannot resolve '@GET'
cannot resolve '@GET'

Time:11-27

@GET is showing error I don't know why So my code was in 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);

}

Edited: Ooops my mistake, their was a typo in my gradleBuild.Dependnecies file.

CodePudding user response:

check gradle-> app -> dependencies -> com.squareup.retrofit2:retrofit:2.9.0 is exist

  • Related