gpt4 book ai didi

java - 不支持不必要地替换不存在的任务

转载 作者:行者123 更新时间:2023-11-30 05:23:35 26 4
gpt4 key购买 nike

我收到以下错误:

FAILURE: Build failed with an exception.

* Where:
Initialization script 'C:\Users\User\AppData\Local\Temp\Console_main__.gradle' line: 18

* What went wrong:
A problem occurred configuring root project 'demo'.
> Could not create task ':Console.main()'.
> Unnecessarily replacing a task that does not exist is not supported. Use create() or register() directly instead. You attempted to replace a task named 'Console.main()', but there is no existing task with that name.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 236ms
10:32:59 PM: Task execution finished 'Console.main()'.

最佳答案

如果您使用 Intellij idea,这可能会有所帮助:设置 -> 构建、执行、部署 -> Gradle -> 使用 IntelliJ IDEA 构建并运行

关于java - 不支持不必要地替换不存在的任务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59094029/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com