getsentry / getsentry/sentry-java
Error: Sentry SDK has detected a mix of versions.
- Dominant language
- Kotlin
- Stars
- 1.4k
- Forks
- 478
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 69
Description
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)
Contributor guide
Research direction
Start with the dependency declarations in libs.versions.toml and compare the versions specified for the Sentry Kotlin Multiplatform and Android modules. Done means the Sentry dependencies resolve to compatible versions and the application no longer reports mixed SDK versions at startup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100