So I am trying to use Retrofit for my project. As the site says I have included
compile \'com.squareup.retrofit:retrofit:2.0.0-beta1\' in build.gradle
There is a change in the API in version 2. This is how you do it in this version:
Retrofit retrofit = new Retrofit.Builder()
.baseUrl("https://api.github.com")
.build();
GitHubService service = retrofit.create(GitHubService.class);
Please refer here for more information: Retrofit 2 home page
and these slides: Retrofit 2 presentation