sentry-android-gradle-plugin icon indicating copy to clipboard operation
sentry-android-gradle-plugin copied to clipboard

Circular dependency error

Open krystofwoldrich opened this issue 1 year ago • 1 comments

Description

This is an umbrella issue for circular deps issues from other platforms.

Related issues

  • React Native https://github.com/getsentry/sentry-react-native/issues/3644
  • Flutter https://github.com/getsentry/sentry-dart/issues/2219

Example Error

:app:compileReleaseJavaWithJavac
--- :app:processReleaseResources
+--- :app:mapReleaseSourceSetPaths
| --- :app:mergeReleaseResources
| --- :app:copyReleaseBundledJs
| --- :app:mergeReleaseAssets
| --- :app:generateSentryDebugMetaPropertiesRelease
| --- :app:generateSentryProguardUuidRelease
| --- :app:minifyReleaseWithR8
| +--- :app:mergeReleaseGeneratedProguardFiles
| | +--- :app:compileReleaseJavaWithJavac ()
| | --- :app:processReleaseResources ()
| +--- :app:processReleaseResources ()
| --- :app:transformReleaseClassesWithAsm
| +--- :app:compileReleaseJavaWithJavac ()
| --- :app:processReleaseResources ()
--- :app:mergeReleaseResources ()

krystofwoldrich avatar Aug 16 '24 14:08 krystofwoldrich

Hey @markushi @krystofwoldrich, as I read in the RN issue https://github.com/getsentry/sentry-react-native/issues/3644 and Flutter issue https://github.com/getsentry/sentry-dart/issues/2219, there are problems with reproducing this issue. So I uploaded the flutter counter app with this issue here: https://github.com/martinhaintz/sentry-circular-dependency

Let me know if you need something.

martinhaintz avatar Oct 14 '24 09:10 martinhaintz

Hi, any updates on this bug? It's preventing me from updating my sentry version :/

feinstein avatar Nov 11 '24 07:11 feinstein

@feinstein thanks for the ping. We're still looking into this, I'll keep you posted about any updates.

markushi avatar Nov 22 '24 09:11 markushi

hi, we're going to close this issue as it should be addressed when you're using AGP 7.4+ (2.5 years old at this point). See this troubleshooting page entry for more details: https://docs.sentry.io/platforms/dart/guides/flutter/troubleshooting/#sentry-android-gradle-plugin-circular-dependency.

If you're still facing this issue with a newer version of AGP, feel free to comment here or open a new issue.

romtsn avatar Aug 08 '25 14:08 romtsn