OkHttp Maven Dependency

This page gives you a quick reference to get OkHttp dependency for Maven or Gradle projects. You can also download the OkHttp jar dependency, the link given at the "Download JAR File" section.

OkHTTP is an open-source project designed to be an efficient HTTP client for Android and Java applications.

OkHttp Maven Dependency

Copy below OkHttp maven dependency and paste in your project pom.xml file:
<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
For more details about the proper version to use, check out the following Maven Central link.

OkHttp Gradle Dependency

Copy below OkHttp gradle dependency and paste in your project build.gradle file:
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '4.2.2'

Download JAR File

Check for Latest Release