Migrate from sentry-android-gradle-plugin 3.x to 4.0.0
Learn about migrating from Sentry Android Gradle Plugin 3.x to 4.0.0.
- Bumped Sentry Android SDK to
7.0.0. Refer to the migration guide for sentry-android 6.x to 7.0.0 for details about changes to the SDK. - Renamed
experimentalGuardsquareSupportflag todexguardEnabled.
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:
Copied
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.
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").