ric*_*bbo 5 intellij-idea gradle
当我打算直接通过 Intellij IDEA 运行该项目时,它会生成以下错误。
这ijresolvers.gradle是自动生成的,因此当我尝试更改它时,IDEA 会创建另一个。
输出:
18:16:12: Executing 'run'...
:wrapper
BUILD SUCCESSFUL
Total time: 0.251 secs
FAILURE: Build failed with an exception.
* Where:
Initialization script '/private/var/folders/fp/gn6yng6x3sg1k5dx37jy1bnntsymvt/T/ijresolvers.gradle' line: 331
* What went wrong:
A problem occurred evaluating initialization script.
> No signature of method: org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.whenReady() is applicable for argument types: (SetupUtpTestResultListenerAction) values: [SetupUtpTestResultListenerAction@30600d18]
Possible solutions: whenReady(groovy.lang.Closure)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 0.154 secs
18:16:15: Execution finished 'run'.
Run Code Online (Sandbox Code Playgroud)
我的配置:
小智 3
我在类似的环境(Big Sur、IntelliJ 2021.3、Java 1.8、Gradle 3)中遇到了同样的问题,并且在将 IntelliJ 降级到版本 2021.2 后能够成功运行 gradle 任务
| 归档时间: |
|
| 查看次数: |
10614 次 |
| 最近记录: |