add these dependencies in your app level gradle files to be able to use it
implementation 'com.squareup.retrofit2:retrofit:2.8.1' implementation 'com.squareup.retrofit2:converter-gson:2.8.1' implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0'