okhttp3 library in android studio
dependencies { // define a BOM and its version implementation(platform("com.squareup.okhttp3:okhttp-bom:4.9.0")) // define any required OkHttp artifacts without version implementation("com.squareup.okhttp3:okhttp") implementation("com.squareup.okhttp3:logging-interceptor") }
Source: square.github.io
okhttp3 library in android studio
dependencies { compile 'com.squareup.okhttp3:okhttp:3.6.0' }
Source: stackoverflow.com