---
title: "Proguard 7.1: Android Gradle Plugin and Java 16 Support | Guardsquare"
description: Learn about the benefits of Guardsquare’s release of ProGuard 7.1, including Android Gradle Plugin 7 compatibility, Java 16 support and more.
image: https://23593082.hs-sites.com/hubfs/Imported_Blog_Media/ProGuard_7_1-2.jpg
---

[![guardsquare-logo](https://insights.guardsquare.com/hs-fs/hubfs/Logos/logo-white.png?length=536&name=logo-white.png "guardsquare-logo") ](https://23593082.hs-sites.com/)

- pricing

[Request Pricing](https://www.guardsquare.com/request-pricing?hsCtaTracking=646b0379-d596-4b1a-8526-2ccbdbb0f81b%7Ce8809087-a83f-4476-8b22-34b9572013fd)

[Login](https://customers.guardsquare.com/login?utm_referrer=https%3A%2F%2Fwww.guardsquare.com%2F)

En

- [中文](https://www.guardsquare.com/zh-hans)
- [한국어](https://www.guardsquare.com/ko)
- [Português](https://www.guardsquare.com/pt-br)
- [Español](https://www.guardsquare.com/es)

<https://twitter.com/intent/tweet?original_referer=https://23593082.hs-sites.com/amilia-test/blog/proguard-7.1-android-gradle-plugin-and-java-16-support&url=https://23593082.hs-sites.com/amilia-test/blog/proguard-7.1-android-gradle-plugin-and-java-16-support&source=tweetbutton> <http://www.linkedin.com/shareArticle?mini=true&url=https://23593082.hs-sites.com/amilia-test/blog/proguard-7.1-android-gradle-plugin-and-java-16-support> <http://www.facebook.com/share.php?u=https://23593082.hs-sites.com/amilia-test/blog/proguard-7.1-android-gradle-plugin-and-java-16-support> [mailto:?subject=Check%20out%20https://23593082.hs-sites.com/amilia-test/blog/proguard-7.1-android-gradle-plugin-and-java-16-support](mailto:?subject=Check%20out%20https://23593082.hs-sites.com/amilia-test/blog/proguard-7.1-android-gradle-plugin-and-java-16-support)

June 30, 2021

# Meet Proguard 7.1: Featuring a new Android Gradle Plugin, Java 16 Support and More

Written by: Guardsquare

![](https://23593082.hs-sites.com/hubfs/Imported_Blog_Media/ProGuard_7_1-2.jpg)

We are proud to announce the release of ProGuard 7.1, the newest version of our open-source optimizer and shrinker. This latest version provides improved usability and incorporates a number of exciting new features, including:

- **AGP 7 Compatible Gradle Plugin**  
  Ensure continued use of ProGuard, even with the anticipated changes in the upcoming release of Android Gradle Plugin 7

- **Java Support**  
  Use ProGuard with the latest versions of Java. We now fully support Java up to version 16
- **New Optimizations**  
  Optimize code even further, and potentially shrink apps even more than before, thanks to five additional code optimizations
- **Availability on Maven Central**  
  Integrate ProGuard with build systems, like Gradle, much easier since ProGuard is now available on Maven Central
- **Easier Configuration**  
  Configure ProGuard easier and faster thanks to improved`-keep`rule suggestions given by`-addconfigurationdebugging`

### AGP 7 compatible Gradle plugin

The way ProGuard is integrated into Android projects is changing because AGP 7 will no longer allow developers to disable R8 with the android.enableR8 Gradle property.

ProGuard 7.1 includes a new Gradle plugin which allows for a seamless integration with this new AGP version. A detailed and step-by-step guide for transitioning from the previous plugin is provided in the [upgrading guide](https://23593082.hs-sites.com/manual/setup/upgrading).

- Simple integration with Android Gradle Projects by adding a dependency on the ProGuard Gradle Plugin artifact and applying the com.guardsquare.proguard plugin, as presented in the gradle setup instructions.

### Java support

New Java versions are released every 6 months. To allow ProGuard to continue to optimize, obfuscate and shrink Java class files we have added support for the latest releases, up to Java 16. This includes:

- Add support for processing Java 14, 15 and 16 class files.
- Add support for Java 14 sealed classes.
- Add support for records (previewed in Java 15/16, targeted for Java 17).

### New optimizations

ProGuard 7.1 adds five new code optimizations. These optimizations aim at reducing the number of classes required by the application and help pinpoint the specialized type wherever possible. This can have a positive impact on code shrinking and application performances.

- method/specialization/returntype - specializes the types of method return values, whenever possible.
- method/specialization/parametertype - specializes the types of method parameters, whenever possible.
- method/generalization/class - generalizes the classes of method invocations, whenever possible.
- field/specialization/type - specializes the types of fields, whenever possible.
- field/generalization/class - generalizes the classes of field accesses, whenever possible.

### Maven central

ProGuard was previously hosted at JCenter, but this repository has recently been removed. ProGuard is now published to Maven Central.

- Simple integration: follow the gradle setup instructions to select the`mavenCentral()`repository and dependencies to the proguard-gradle artifact.

### Easier configuration

The`-addconfigurationdebugging`allows configuring ProGuard`-keep`rules. For more details and to see this in action have a look at [Configuring ProGuard, an Easy Step-by-Step Tutorial](https://23593082.hs-sites.com/blog/configuring-proguard-an-easy-step-by-step-tutorial).

`-addconfigurationdebugging`previously reported -keep rule suggestions for classes, methods or fields that did not exist in the app. Such`-keep`rules are not necessary.

ProGuard 7.1 improves the suggestion of`-keep`rules by only suggesting rules for classes, methods and fields that were actually in the original application.

- More precise`-keep`rule suggestions provided by `-addconfigurationdebugging`.
- Easier ProGuard`-keep`rules configuration.
- Reduced ProGuard configuration size.

 

Download the latest ProGuard 7.1.0 from [GitHub](https://github.com/Guardsquare/proguard/releases/tag/v7.1.0) or easily integrate it into your Gradle project via [Maven Central](https://mvnrepository.com/artifact/com.guardsquare/proguard-gradle/7.1.0).

Tag(s): [Protection](https://23593082.hs-sites.com/amilia-test/tag/protection) , [Product Launch](https://23593082.hs-sites.com/amilia-test/tag/product-launch) , [ProGuard & R8](https://23593082.hs-sites.com/amilia-test/tag/proguard-r8) , [DexGuard](https://23593082.hs-sites.com/amilia-test/tag/dexguard)

## [Guardsquare](https://23593082.hs-sites.com/amilia-test/author/guardsquare)

Connect with the author

## Discover how Guardsquare provides industry-leading protection for mobile apps.

## Other posts you might be interested in

[

** 11 min read  | August 22, 2023

## Webinar Recap: Accessibility Features and Overlays on Android

Android Protection Security Research 

](https://23593082.hs-sites.com/amilia-test/blog/app-permissions-abuse) [

** 7 min read  | August 15, 2023

## What is RASP and Why It Matters to Mobile App Developers

Android iOS Protection DexGuard iXGuard 

](https://23593082.hs-sites.com/amilia-test/blog/rasp-dynamic-analysis)

## Subscribe to our newsletter

Stay in the know with monthly updates right to your inbox.

![HubSpot CMS](https://cdn2.hubspot.net/hubfs/302335/hubspot-cms-logo-gray.svg "HubSpot CMS")

[General Terms](https://23593082.hs-sites.com/terms-of-use) | [Privacy Policy](https://23593082.hs-sites.com/privacy-policy) | [Cookie Policy](https://23593082.hs-sites.com/cookie-policy)

Tervuursevest 362 bus 1, 3000 Leuven, Belgium | VAT: BE0550675829 |

© 2016-2026 Guardsquare nv. All rights reserved.

<https://www.facebook.com/guardsquare> <https://twitter.com/Guardsquare> <https://www.linkedin.com/company/guardsquare/> <https://www.youtube.com/channel/UCP9s5F1ksT1E-7vSF2CDyhw> <https://github.com/Guardsquare>

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Guardsquare",
    "url" : "https://23593082.hs-sites.com/amilia-test/author/guardsquare"
  },
  "dateModified" : "2023-09-19T17:55:50.994Z",
  "datePublished" : "2021-06-30T04:00:00.000Z",
  "headline" : "Proguard 7.1: Android Gradle Plugin and Java 16 Support | Guardsquare",
  "image" : [ "https://23593082.hs-sites.com/hubfs/Imported_Blog_Media/ProGuard_7_1-2.jpg" ],
  "mainEntityOfPage" : {
    "@id" : "https://23593082.hs-sites.com/amilia-test/blog/proguard-7.1-android-gradle-plugin-and-java-16-support",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject"
    }
  }
}
```