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

# Migrate from sentry-android-gradle-plugin 2.x to 3.0.0 | Sentry for Android

The `io.sentry.android.gradle` >= `3.0.0` requires [Android Gradle Plugin >= 7.0.0](https://developer.android.com/studio/releases/gradle-plugin#7-0-0). For older versions of the Android Gradle Plugin, use `io.sentry.android.gradle:2.+`.

## [includeProguardMapping](https://docs.sentry.io/platforms/android/migration/gradle-plugin-v2-to-v3.md#includeproguardmapping)

The `autoUpload` flag has been deprecated in favor of two new options:

* `includeProguardMapping` - Disables/enables Proguard mapping functionality. When enabled, generates a UUID and attempts to upload a Proguard mapping associated with that UUID to Sentry. When `autoUploadProguardMapping` is disabled, the plugin will only generate a `sentry-debug-meta.properties` file containing UUID, which can later be used to manually upload the mapping using, for example [sentry-cli](https://docs.sentry.io/cli/dif.md#proguard-mapping-upload).
* `autoUploadProguardMapping` - Defines whether the gradle plugin should attempt to auto-upload the mapping file to Sentry. When `includeProguardMapping` is disabled, this flag has no effect.

*Old*:

```groovy
sentry {
    autoUpload = false
}
```

*New*:

```groovy
sentry {
  includeProguardMapping = true
  autoUploadProguardMapping = false
}
```

## [tracingInstrumentation](https://docs.sentry.io/platforms/android/migration/gradle-plugin-v2-to-v3.md#tracinginstrumentation)

The `io.sentry.android.gradle` enables the tracing instrumentation (via bytecode manipulation) for `androidx.sqlite` and `androidx.room` libraries by default, to disable it, see the code snippet below.

```groovy
sentry {
    // Enable or disable the tracing instrumentation.
    // Does auto instrumentation for 'androidx.sqlite' and 'androidx.room' libraries.
    // It starts and finishes a Span within any CRUD operation.
    // Default is enabled.
    // Only available v3.0.0 and above.
    tracingInstrumentation {
      enabled = false
    }
}
```
