Skip to content

Download

The source code to the Retrofit, its samples, and this website is available on GitHub.

implementation("com.squareup.retrofit2:retrofit:3.1.0-SNAPSHOT")
<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>retrofit</artifactId>
<version>3.1.0-SNAPSHOT</version>
</dependency>

Retrofit requires at minimum Java 8+ or Android API 21+.

If you are using R8 the shrinking and obfuscation rules are included automatically.

ProGuard users must manually add the options from retrofit2.pro. You might also need rules for OkHttp and Okio which are dependencies of this library.