Conclusion

In this lesson, you learned:

  • How Retrofit simplifies networking code compared to using HttpUrlConnection.
  • How to add Retrofit to your project.
  • How to incorporate Retrofit in an Android app.
  • What components you need to build a Retrofit instance.

This lesson provides a good foundation to build on. In the upcoming lessons, you’ll make API requests with Retrofit, and you’ll learn about additional components that can be very helpful.

Ktor — a Viable Alternative

Ktor is a framework for building server-side and client-side apps. It’s developed by JetBrains. You can use Ktor on Android to consume APIs as an alternative to Retrofit. This can be helpful if you’re working on a Kotlin Multiplatform app where you can’t use Retrofit because it’s a Java library.

You won’t use Ktor in this course, but it deserves to be mentioned.

See forum comments
Download course materials from Github
Previous: Demo Next: Quiz: Meet Retrofit