Skip to content

Error: Sentry SDK has detected a mix of versions. #5105

Closed

Description

@QuantumPineapple68

The error log : FATAL EXCEPTION: The Sentry SDK has been configured with mixed versions. Expected maven:io.sentry:sentry-android to match core SDK version 8.32.0 but was 8.31.0

my libs.versions.toml

[versions]
sentryKmp = "0.24.0"
sentryAndroid = "8.31.0"

[libraries]
sentry-kotlin-multiplatform = { module = "io.sentry:sentry-kotlin-multiplatform", version.ref = "sentryKmp" }
sentry-android-core = { module = "io.sentry:sentry-android-core", version.ref = "sentryAndroid" }
sentry-okhttp = { module = "io.sentry:sentry-okhttp", version.ref = "sentryAndroid" }
sentry-android-replay = { module = "io.sentry:sentry-android-replay", version.ref = "sentryAndroid" }
sentry-android = { module = "io.sentry:sentry-android", version.ref = "sentryAndroid" }

I've tried both sentryAndroid = "8.31.0" and sentryAndroid = "8.32.0"
Neither of them works. I do not have conflicting versions in my entire project (used global search to verify)

Activity

  1. linear commented on Feb 18, 2026

    @linear
  2. getsantry commented on Feb 18, 2026

    @getsantry

    Assigning to @getsentry/support for routing ⏲️

  3. moved this to Waiting for: Support in GitHub Issues with 👀 3on Feb 18, 2026
  4. transferred this issue fromgetsentry/sentryon Feb 20, 2026
  5. moved this from Waiting for: Support to Waiting for: Product Owner in GitHub Issues with 👀 3on Feb 20, 2026
  6. markushi commented on Feb 25, 2026

    @markushi
    Member

    @QuantumPineapple68 thanks for reporting!
    The latest kmp version references 8.31.0:

    https://github.com/getsentry/sentry-kotlin-multiplatform/blob/302ffc8c24d145bbc2bdc28baebea75345399a75/buildSrc/src/main/java/Config.kt#L36-L38

            val sentryJavaVersion = "8.31.0"
            val sentryAndroid = "io.sentry:sentry-android:$sentryJavaVersion"
            val sentryJava = "io.sentry:sentry:$sentryJavaVersion"
    

    Could you try adding an explicit dependency to your app for the above modules? The error log also hints that you're using our Sentry Android Gradle Plugin, so I'd advise you to configure it to use the same version too:

    sentry {
      autoInstallation {
        enabled = true
        sentryVersion = '8.31.0'
       }
    }
  7. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Feb 25, 2026
  8. 10 remaining items

  9. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Mar 10, 2026
  10. github-actions commented on Nov 11, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #6466, which was included in the 8.64.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions