2016-04-28 84 views
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);} 

我已经包含在我的文件的gradle编译 'com.squareup.retrofit2:变流器GSON:2.0.2' 编译“com.squareup.retrofit2:改造:2.0 .2'改造找不到符号

这是什么问题?

+0

使用'import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; import retrofit2.Retrofit; ...'代替。关于自动导入,请阅读http://stackoverflow.com/questions/16615038/what-is-the-shortcut-to-auto-import-all-in-android-studio – BNK

回答

2

从Retrofit 2.0。* directy从改造改名为retrofit2,你可以在这里找到它。 updated directory path