Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface SentryAndroidGradlePluginOptions {
includeSourceContext?: boolean;
}

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.


/**
* Adds the Sentry Android Gradle Plugin to the project.
Expand Down
2 changes: 1 addition & 1 deletion samples/react-native/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildscript {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
classpath("io.sentry:sentry-android-gradle-plugin:6.1.0")
classpath("io.sentry:sentry-android-gradle-plugin:6.2.0")
}
}

Expand Down
Loading