0
 ckage com.netvariant.helloworld;
  import retrofit.Callback;
  import retrofit.http.GET;
  import retrofit.http.Query;
  import retrofit.Call;
 public interface StackOverflowAPI {
@GET("/2.2/questions?order=desc&sort=creation&site=stackoverflow")
Call<StackOverflowQuestions> loadQuestions(@Query("tagged") String tags);}

I have included in my gradle file compile 'com.squareup.retrofit2:converter-gson:2.0.2' compile 'com.squareup.retrofit2:retrofit:2.0.2'

Whats the issue?

user3278732
  • 1,694
  • 10
  • 31
  • 67
  • Use `import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; import retrofit2.Retrofit;...` instead. About auto import, pls read http://stackoverflow.com/questions/16615038/what-is-the-shortcut-to-auto-import-all-in-android-studio – BNK Apr 28 '16 at 08:17

1 Answers1

2

From Retrofit 2.0.* the directy is renamed from retrofit to retrofit2 you can find it here. updated directory path

Arslan Sohail
  • 1,583
  • 1
  • 12
  • 18