what command is executed when you click sync in idea gradle ?
I think when I click "sync", I know it will execute "gradle wrapper", then what?
I am asking this because the second step is broken in my local computer, but I cannot figure out what is executed. e.g, the error below only shows "wrapper" is executed, then it does not tell us what is next, just some vague error messages.
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':.........:testCompileClasspath'.
Problems reading data from Binary store in /private/var/folders/93/87byl9b940b_my657dhxsqzc0000gn/T/gradle11223058466227903199.bin offset 280347 exists? true
Unexpected parent dependency id 71. Seen ids: [2, 262, 263, 266, 19, 275, 277, 280, 281, 283, 285, 34, 35, 36, 37, 38, 40, 41, 299, 300, 301, 302, 303, 304, 305, 306, 53, 309, 54, 55, 312, 57, 319, 320, 65, 321, 67, 69, 325, 327, 331, 333, 339, 340, 342, 87, 347, 350, 100, 101, 106, 366, 367, 368, 369, 379, 380, 381, 382, 383, 390, 391, 136, 398, 399, 145, 146, 147, 148, 154, 155, 412, 413, 414, 415, 161, 162, 163, 164, 426, 429, 179, 180, 436, 181, 437, 182, 443, 447, 452, 455, 206, 207, 463, 208, 465, 210, 211, 212, 468, 213, 214, 471, 223, 226, 245]
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Please sign in to leave a comment.
>Unexpected parent dependency id
Does it work from command line? Looks like a Gradle issue:
https://youtrack.jetbrains.com/issue/IDEA-244823#focus=Comments-27-4258444.0-0 / https://github.com/gradle/gradle/issues/13639 or https://github.com/gradle/gradle/issues/8489
Try using latest Gradle versions.
>I think when I click "sync", I know it will execute "gradle wrapper", then what?
The using Gradle Tooling API Gradle daemon is communicating with the IDE to set up the project model according to Gradle configuration.
>just some vague error messages.
These messages are reported from the Gradle itself. by the way you can press --info or --debug option to get more log output.
Yes, it works in command line with all Gradle versions I have tested (6.7, 6.8, 6.8.2, not the old versions in the tickets you mentioned) but it just cannot run in IDEA. I installed JetBrains ToolBox and tried all versions of IDEA, finally I found only 2019.3 works.
Got it, I guess IDEA simply calls https://docs.gradle.org/current/javadoc/org/gradle/tooling/GradleConnector.html#forProjectDirectory-java.io.File- . Then maybe there is nothing more to print to the debug console. And I don't think it's possible to pass in "--debug" in this case.
Since it's really difficult to reproduce this problem, let's close this ticket for now and I will try EAP periodically to see if this is solved. Many thanks to Andrey Dernov.
Since this is the issue with Gradle Tooling API it may work from command line. If using latest Gradle version and different Gradle JVM does not help:
Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Gradle | Use Gradle from: and Gradle JVM: options.
it may make sense to report it to Gradle.
I've started facing this issue too. there seems to be some local environment/setup dependency. the same code runs as expected in AWS. any suggestions or pointers on where to look?
Try using different Gradle version, Gradle JVM version and clean Gradle caches.