NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform
Here is the issuehttps://github.com/square/retrofit/issues/2266
You have to put the same version.This is the last version
implementation 'com.squareup.okhttp3:logging-interceptor:4.7.2'implementation 'com.squareup.okhttp3:okhttp:4.7.2'