Sign in Go Pro


Setting up Retrofit 2 and Issuing a HTTP GET Request

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next


In this Lesson you will learn:

  • How to set up Retrofit 2
  • Create a standalone Retrofit instance
  • Send a simple GET request
  • Enqueue a request for asynchronous communication

- Retrofit Documentation


I am getting an Error while Setting up Retrofit:
Failed to resolve: com.squareup.retrofit2:convertor-gson:2.4.0

I have just added these 2 dependencies

// REST Interface
implementation 'com.squareup.retrofit2:retrofit:2.4.0'

//JSON Parsing
implementation 'com.squareup.retrofit2:convertor-gson:2.4.0'

plz help......

There's a typo: should be converter, not convertor.


You need to go PRO to post comments.

Lessons in RetroFit2