Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Mix of Sentry dependency versions

Open
#833 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@romtsn is already working on this.

Since Feb 12, 2025.

Assessment

This issue has not been assessed yet.

Description

Android Improvement
Gradle Version
AGP Version
Code Minifier/Optimizer

None

Version

5.0.0

Sentry SDK Version

8.0.0

Steps to Reproduce

Have a project using the gradle plugin, e.g. with version 5.0.0 that should use Java SDK 8.0.0. Then manually define a dependency, e.g.:

dependencies {
	implementation 'io.sentry:sentry-opentelemetry-agentless-spring:8.1.0'
}

sentry {
	// Generates a JVM (Java, Kotlin, etc.) source bundle and uploads your source code to Sentry.
	// This enables source context, allowing you to see your source
	// code as part of your stack traces in Sentry.
	includeSourceContext = true

	org = "sentry-sdks"
	projectName = "java-spring-boot-k0"
	authToken = System.getenv("SENTRY_AUTH_TOKEN")
}

Also behaves the same way when pinning the "wrong" version on the plugin:


dependencies {
	implementation 'io.sentry:sentry-opentelemetry-agentless-spring:8.1.0'
}

sentry {
	// Generates a JVM (Java, Kotlin, etc.) source bundle and uploads your source code to Sentry.
	// This enables source context, allowing you to see your source
	// code as part of your stack traces in Sentry.
	includeSourceContext = true

	org = "sentry-sdks"
	projectName = "java-spring-boot-k0"
	authToken = System.getenv("SENTRY_AUTH_TOKEN")

	autoInstallation {
		sentryVersion = "8.0.0"
	}
}
Expected Result

Either the plugin uses the same version for all dependencies or notifies the customer, e.g. by failing the build, as otherwise this might only be caught in production / after releasing an app.

Actual Result

AbstractMethodError or NoSuchMethodError and similar problems caused by a version mismatch between Sentry dependencies.

Dominant language
Kotlin
Stars
184
Forks
41
Avg merge
1d 23h
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-android-gradle-plugin

All issues in getsentry/sentry-android-gradle-plugin

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.