2016-04-28 87 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