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

# Migrate from sentry-android-gradle-plugin 1.x to 2.0.0 | Sentry for Android

The `io.sentry.android.gradle` >= `2.0.0` requires [Android Gradle Plugin >= 4.0.0](https://developer.android.com/studio/releases/gradle-plugin#4-0-0).

The `io.sentry.android.gradle` >= `2.0.0` must be applied to the `app/build.gradle` module (or the module that has `com.android.application` plugin applied).

The `io.sentry.android.gradle` >= `2.0.0` publishes the Gradle Plugin Marker to Maven Central. As a result, you no longer need to set the `classpath`.

*Old*:

```groovy
buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'io.sentry:sentry-android-gradle-plugin:{version}'
    }
}

apply plugin: 'io.sentry.android.gradle'
```

*New*:

```groovy
plugins {
    id "io.sentry.android.gradle" version "{version}"
}

buildscript {
    repositories {
        mavenCentral()
    }
}
```

The `io.sentry.android.gradle` has been rewritten in Kotlin. As a result, the Groovy or Kotlin DSL syntax has slightly changed.

The `autoProguardConfig` flag has been removed, the Android SDK >= `2.0.0` version already merges the ProGuard rules automatically.

*Old*:

```groovy
sentry {
    autoProguardConfig false
    autoUpload true
    uploadNativeSymbols false
    includeNativeSources false
}
```

*New*:

```groovy
sentry {
    autoUpload = true
    uploadNativeSymbols = false
    includeNativeSources = false
}
```
