Skip to content

chore(deps): update Sentry Android Gradle Plugin to v6.2.0#5836

Merged
antonis merged 2 commits intomainfrom
deps/scripts/update-sentry-android-gradle-plugin.sh
Mar 18, 2026
Merged

chore(deps): update Sentry Android Gradle Plugin to v6.2.0#5836
antonis merged 2 commits intomainfrom
deps/scripts/update-sentry-android-gradle-plugin.sh

Conversation

@github-actions
Copy link
Contributor

Bumps scripts/update-sentry-android-gradle-plugin.sh from 6.1.0 to 6.2.0.

Auto-generated by a dependency updater.

Changelog

6.2.0

Features

  • (Experimental) Wire VCS info extension to snapshot uploads for git metadata support (#1102)

Dependencies

6.2.0-alpha.2

Dependencies

6.2.0-alpha.1

Features

  • (Experimental) Add snapshot upload support via sentryUploadSnapshots task (#1091)

Dependencies

@github-actions github-actions bot requested a review from alwx as a code owner March 18, 2026 12:16
@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Mar 18, 2026
@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Mar 18, 2026
}

export const sentryAndroidGradlePluginVersion = '6.1.0';
export const sentryAndroidGradlePluginVersion = '6.2.0';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The sentry-android-gradle-plugin was updated to 6.2.0 (which bundles Android SDK 8.36.0), but the direct dependency in build.gradle remains at 8.33.0, causing a version mismatch.
Severity: CRITICAL

Suggested Fix

To resolve the version conflict, update the Sentry Android SDK dependency in packages/core/android/build.gradle from 8.33.0 to 8.36.0. This will align the direct dependency with the version bundled in the sentry-android-gradle-plugin 6.2.0.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: packages/core/plugin/src/withSentryAndroidGradlePlugin.ts#L16

Potential issue: The update to the `sentry-android-gradle-plugin` to version `6.2.0`
introduces a mismatch with the explicitly declared Sentry Android SDK version. The
plugin bundles SDK version `8.36.0`, while `packages/core/android/build.gradle` still
specifies `8.33.0`. At runtime, the Sentry Android SDK detects this mix of versions and
is designed to throw an `IllegalStateException`, which will crash the application on
Android during initialization. This behavior is intentionally built into the SDK to
prevent unpredictable issues arising from mismatched versions.

Did we get this right? 👍 / 👎 to inform future reviews.

@antonis antonis added ready-to-merge Triggers the full CI test suite and removed ready-to-merge Triggers the full CI test suite labels Mar 18, 2026
@github-actions
Copy link
Contributor Author

github-actions bot commented Mar 18, 2026

Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request
🚫

❌ Android SDK Version Mismatch

Component Version
sentry-android in build.gradle 8.33.0
sentry-android bundled by gradle plugin 6.2.0 8.36.0

This mismatch will cause crashes on Android with error:

IllegalStateException: Sentry SDK has detected a mix of versions

Fix: Update packages/core/android/build.gradle to use version 8.36.0 or wait for a gradle plugin release that bundles 8.33.0.

Generated by 🚫 dangerJS against 0016609

@github-actions
Copy link
Contributor Author

github-actions bot commented Mar 18, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • chore(deps): update Sentry Android Gradle Plugin to v6.2.0 by github-actions[bot] in #5836
  • fix(ci): Update Appium version to fix Sauce Labs metrics tests by antonis in #5835
  • chore(deps): update JavaScript SDK to v10.44.0 by github-actions in #5832
  • fix(tracing): Fix native frames measurements dropped for idle transactions by antonis in #5813
  • feat(core): Support SENTRY_ENVIRONMENT in bare React Native builds by antonis in #5823
  • chore(deps): bump tar to ^7.5.11 by antonis in #5824
  • chore(deps): bump actions/create-github-app-token from 2.2.1 to 3.0.0 by dependabot in #5822
  • chore(deps): bump dorny/paths-filter from 3.0.2 to 4.0.1 by dependabot in #5820
  • chore(deps): bump reactivecircus/android-emulator-runner from 2.35.0 to 2.37.0 by dependabot in #5818
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.23.2 to 2.24.1 by dependabot in #5821
  • chore(deps): bump getsentry/craft from 2.23.2 to 2.24.1 by dependabot in #5819
  • chore(deps): bump undici from 6.23.0 to 6.24.1 by dependabot in #5817
  • chore(deps): bump flatted from 3.3.1 to 3.4.1 by dependabot in #5816
  • Ref: remove yarn from stub update by lucas-zimerman in #5811
  • Ref(CI): Unify stub update with android update by lucas-zimerman in #5807

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor Author

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1215.61 ms 1215.46 ms -0.15 ms
Size 3.38 MiB 4.72 MiB 1.34 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
ea3e26e+dirty 1229.13 ms 1228.46 ms -0.67 ms
80e4616+dirty 1221.32 ms 1225.64 ms 4.32 ms
818a608+dirty 1205.76 ms 1208.00 ms 2.24 ms
77061ed+dirty 1233.16 ms 1234.88 ms 1.71 ms
bef3709+dirty 1222.07 ms 1220.24 ms -1.83 ms
a206511+dirty 1185.00 ms 1186.35 ms 1.35 ms
74979ac+dirty 1210.49 ms 1213.31 ms 2.82 ms
a2bb688+dirty 1223.53 ms 1232.90 ms 9.37 ms
8a868fe+dirty 1221.50 ms 1230.78 ms 9.28 ms
d590428+dirty 1211.77 ms 1220.51 ms 8.75 ms

App size

Revision Plain With Sentry Diff
ea3e26e+dirty 3.41 MiB 4.58 MiB 1.17 MiB
80e4616+dirty 3.38 MiB 4.60 MiB 1.22 MiB
818a608+dirty 2.63 MiB 3.91 MiB 1.28 MiB
77061ed+dirty 2.63 MiB 3.98 MiB 1.34 MiB
bef3709+dirty 3.38 MiB 4.78 MiB 1.40 MiB
a206511+dirty 3.41 MiB 4.67 MiB 1.25 MiB
74979ac+dirty 3.38 MiB 4.60 MiB 1.22 MiB
a2bb688+dirty 2.63 MiB 3.99 MiB 1.36 MiB
8a868fe+dirty 3.38 MiB 4.60 MiB 1.22 MiB
d590428+dirty 3.38 MiB 4.78 MiB 1.39 MiB

Previous results on branch: deps/scripts/update-sentry-android-gradle-plugin.sh

Startup times

Revision Plain With Sentry Diff
b061ec1+dirty 1201.80 ms 1212.37 ms 10.57 ms

App size

Revision Plain With Sentry Diff
b061ec1+dirty 3.38 MiB 4.78 MiB 1.40 MiB

@github-actions
Copy link
Contributor Author

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 408.09 ms 434.66 ms 26.57 ms
Size 43.75 MiB 48.33 MiB 4.57 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
4a17c8f+dirty 406.62 ms 400.58 ms -6.04 ms
df1f7df+dirty 442.64 ms 427.16 ms -15.48 ms
a483f9f+dirty 396.82 ms 453.28 ms 56.46 ms
60cd796+dirty 445.84 ms 492.45 ms 46.61 ms
5c16cdc+dirty 423.48 ms 452.35 ms 28.88 ms
80e4616+dirty 411.58 ms 462.12 ms 50.54 ms
55b77fc+dirty 411.87 ms 417.16 ms 5.29 ms
bca62c0+dirty 414.36 ms 451.06 ms 36.70 ms
0b64753+dirty 448.67 ms 474.61 ms 25.94 ms
4e6d7d7+dirty 480.73 ms 515.73 ms 35.00 ms

App size

Revision Plain With Sentry Diff
4a17c8f+dirty 43.75 MiB 47.99 MiB 4.24 MiB
df1f7df+dirty 43.75 MiB 48.08 MiB 4.33 MiB
a483f9f+dirty 43.75 MiB 48.41 MiB 4.66 MiB
60cd796+dirty 43.75 MiB 48.07 MiB 4.32 MiB
5c16cdc+dirty 17.75 MiB 19.68 MiB 1.94 MiB
80e4616+dirty 43.75 MiB 48.55 MiB 4.80 MiB
55b77fc+dirty 43.75 MiB 47.99 MiB 4.24 MiB
bca62c0+dirty 43.75 MiB 48.41 MiB 4.66 MiB
0b64753+dirty 17.75 MiB 19.70 MiB 1.95 MiB
4e6d7d7+dirty 43.75 MiB 48.40 MiB 4.64 MiB

Previous results on branch: deps/scripts/update-sentry-android-gradle-plugin.sh

Startup times

Revision Plain With Sentry Diff
b061ec1+dirty 411.54 ms 446.62 ms 35.08 ms

App size

Revision Plain With Sentry Diff
b061ec1+dirty 43.75 MiB 48.42 MiB 4.67 MiB

@antonis antonis enabled auto-merge (squash) March 18, 2026 13:14
Copy link
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The version mismatch will be resolved with #5812

@antonis antonis merged commit 97afe8e into main Mar 18, 2026
32 of 45 checks passed
@antonis antonis deleted the deps/scripts/update-sentry-android-gradle-plugin.sh branch March 18, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants