---
title: "Migrate from sentry-android-gradle-plugin 3.x to 4.0.0"
description: "Learn about migrating from Sentry Android Gradle Plugin 3.x to 4.0.0."
url: https://docs.sentry.io/platforms/android/migration/gradle-plugin-v3-to-v4/
---

# Migrate from sentry-android-gradle-plugin 3.x to 4.0.0 | Sentry for Android

## [Breaking Changes](https://docs.sentry.io/platforms/android/migration/gradle-plugin-v3-to-v4.md#breaking-changes)

* Bumped Sentry Android SDK to `7.0.0`. Refer to the [migration guide for sentry-android 6.x to 7.0.0](https://docs.sentry.io/platforms/android/migration/v6-to-v7.md) for details about changes to the SDK.
* Renamed `experimentalGuardsquareSupport` flag to `dexguardEnabled`.

## [Sentry Android SDK Compatibility](https://docs.sentry.io/platforms/android/migration/gradle-plugin-v3-to-v4.md#sentry-android-sdk-compatibility)

You must use Sentry Gradle plugin 4.+ together with the Sentry Android SDK 7.+ otherwise, it might crash at runtime due to binary incompatibility. If you can't do that for some reason, you can specify the Sentry version via the plugin config block:

```kotlin
sentry {
  autoInstallation {
    sentryVersion.set("7.0.0")
  }
}
```

Similarly, if you have a Sentry SDK (e.g. `sentry-android-core`) dependency on one of your Gradle modules and you're updating it to 7.+, make sure the Gradle plugin is at 4.+, or specify the SDK version as shown in the snippet above.
