小编San*_*Zan的帖子

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

我收到以下错误:

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 …
Run Code Online (Sandbox Code Playgroud)

java compiler-errors compilation gradle

13
推荐指数
4
解决办法
2万
查看次数

标签 统计

compilation ×1

compiler-errors ×1

gradle ×1

java ×1