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

After upgrading to Gradle 7, getDependencies fails #194

Closed
hannta opened this issue Jul 30, 2021 · 1 comment · Fixed by #216
Closed

After upgrading to Gradle 7, getDependencies fails #194

hannta opened this issue Jul 30, 2021 · 1 comment · Fixed by #216

Comments

@hannta
Copy link

hannta commented Jul 30, 2021

Describe the bug
After I upgraded to Gradle 7, my build started to fail with the following getDependencies task error:

Execution failed for task ':app:getDependencies'.
> java.lang.StackOverflowError (no error message)


Cause: java.lang.StackOverflowError
	at com.google.common.collect.ImmutableList.listIterator(ImmutableList.java:364)
	at com.google.common.collect.ImmutableList.listIterator(ImmutableList.java:357)
	at com.google.common.collect.ImmutableList.iterator(ImmutableList.java:352)
	at com.google.common.collect.RegularImmutableSet.iterator(RegularImmutableSet.java:74)
	at com.google.common.cache.LocalCache$2.iterator(LocalCache.java:917)
	at com.google.common.cache.LocalCache$Segment.removeCollectedEntry(LocalCache.java:3186)
	at com.google.common.cache.LocalCache$Segment.removeEntryFromChain(LocalCache.java:3170)
	at com.google.common.cache.LocalCache$Segment.removeValueFromChain(LocalCache.java:3155)
	at com.google.common.cache.LocalCache$Segment.reclaimValue(LocalCache.java:3243)
	at com.google.common.cache.LocalCache.reclaimValue(LocalCache.java:1702)
	at com.google.common.cache.LocalCache$Segment.drainValueReferenceQueue(LocalCache.java:2390)
	at com.google.common.cache.LocalCache$Segment.drainReferenceQueues(LocalCache.java:2365)
	at com.google.common.cache.LocalCache$Segment.runLockedCleanup(LocalCache.java:3367)
	at com.google.common.cache.LocalCache$Segment.preWriteCleanup(LocalCache.java:3350)
	at com.google.common.cache.LocalCache$Segment.storeLoadedValue(LocalCache.java:3044)
	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2234)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2195)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2153)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2043)
	at com.google.common.cache.LocalCache.get(LocalCache.java:3851)
	...

Desktop:

  • Gradle version: 7.0.2
  • Android Studio version: 2020.3.1 (stable)
  • Plugin name and version: OSS Licenses 0.10.4
@eric-labelle
Copy link

Hi, as a complement of information, I did filed this bug on the Dagger repo, and they confirmed it really was a fix for the oss-plugin. See issue here with an MCVE project to be able to reproduce the problem. google/dagger#2744

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants