Gradle:堆栈溢出错误

cha*_*ny1 6 stack-overflow gradle

我在 IDEA 中使用 Gradle 并得到以下输出。

* What went wrong:
A problem occurred evaluating script.
> java.lang.StackOverflowError (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Run Code Online (Sandbox Code Playgroud)

cha*_*ny1 3

实际上,我在文件中创建了循环依赖关系,导致了这种情况。有关更好的解释,请参阅此处。