Mostly we use retrofit with MVVM or MVP now we will learn how to use simple retrofit in android kotlin. First of all, we will add internet permission in the manifest file. <uses-permission android:name="android.permission.INTERNET"/> After that, we need to add some dependencies to the build.Gradle(:app) file. implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation…