Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle 8.11.1 with configuration cache enabled errors during release build #813

Open
dgbailey opened this issue Jan 17, 2025 · 1 comment
Labels
bug Something isn't working Platform: Android

Comments

@dgbailey
Copy link

Gradle Version

8.11.1

AGP Version

8.6.1

Code Minifier/Optimizer

R8

Version

4.14.1

Sentry SDK Version

7.16.0

Steps to Reproduce

Upgrading to Gradle 8.11.1 in a native Android project and encountering issues generating a release build due to a problem with the Sentry Gradle plugin.

The issue occurs only when the configuration cache is enabled org.gradle.configuration-cache=true, specifically on Gradle versions above 8.10. We are currently running without issues with config cache enabled on Gradle 8.8, and have also tested successfully on 8.9.

Gradle configs:

org.gradle.configureondemand=true
org.gradle.configuration-cache=true
org.gradle.configuration-cache-problems=warn
org.gradle.configuration-cache.parallel=true

Sentry Plugin Config

sentry {
…
  includeProguardMapping = true

  autoUploadProguardMapping = true

  uploadNativeSymbols = true

  autoUploadNativeSymbols = true

  includeNativeSources = true

  includeSourceContext = true

  tracingInstrumentation {
    enabled = false
  }

  autoInstallation {
    enabled = false
  }

  includeDependenciesReport = false

  telemetry = false
}

Expected Result

Successful build.

Actual Result

Error:

Could not load the value of field __sentryTelemetryService__ of task :app:uploadSentryProguardMappings******Release of type io.sentry.android.gradle.tasks.SentryUploadProguardMappingsTask.

Cannot set the value of a property of type io.sentry.android.gradle.telemetry.SentryTelemetryService using a provider of type io.sentry.android.gradle.telemetry.SentryTelemetryService.

@dgbailey dgbailey added bug Something isn't working Platform: Android labels Jan 17, 2025
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 17, 2025
@markushi markushi moved this from Needs Discussion to Todo in Mobile & Cross Platform SDK Jan 22, 2025
@markushi markushi moved this from Todo to Needs Investigation in Mobile & Cross Platform SDK Jan 22, 2025
@markushi
Copy link
Member

@dgbailey thanks for reporting, we'll have a look at this shortly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Platform: Android
Projects
Status: No status
Status: Needs Investigation
Development

No branches or pull requests

3 participants