Sign in Go Pro

RetroFit2

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
Autoplay

Up next

About

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

Links
- Retrofit Documentation

Comments

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.

Thanks.....

>
You need to go PRO to post comments.

Lessons in RetroFit2