How to Implement REST API in Android using Retrofit in Kotlin

preview_player
Показать описание
Retrofit with Kotlin Coroutine in Android
Retrofit is a type-safe http client which is used to retrieve, update and delete the data from web services. Nowadays retrofit library is popular among the developers to use the API key. The Kotlin team defines coroutines as “lightweight threads”. They are sort of tasks that the actual threads can execute. Coroutines were added to Kotlin in version 1.3 and are based on established concepts from other languages. Kotlin coroutines introduce a new style of concurrency that can be used on Android to simplify async code. In this article, we will learn about retrofit using Kotlin coroutine. So we will be using Retrofit for network requests. Retrofit is a very popular library used for working APIs and very commonly used as well. We will learn it by making a simple app using an API to get some data using Retrofit.
Рекомендации по теме
Комментарии
Автор

I wish I had money to donate to you for this great explanation.
Thank you so much.

abdulrahmanhasanato
Автор

Hi KDTEchs, great example from recent date, old examples don't seem to work, or generates a lot questions when compiling and running ( version control, wrong SDK etc. etc. need androidx in stead of android) especially when you are beginner like me, that is a big problem. You are still learning and you need simple eamples that work. That is why recent examples are important. Thanks for the example I'm going to try it. Thanks again.

jordaanelectronics
Автор

thank you bro
you saved me
may your channel be properous

PankajKumar-tgzi
Автор

Could not resolve
How can I fix that error have you got any idea?

OmerFarukUcer
Автор

How can I solve
Caused by: Could not resolve all files for configuration ':app:debugCompileClasspath'.

wllkhyh
Автор

Failed to resolve:
Affected Modules: app

wllkhyh