android retrofit 2 documentation code example
Example 1: retrofit android
def retrofit_version = "2.9.0"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
Example 2: retrofit android
implementation 'com.squareup.retrofit2:retrofit:2.9.0'