首页 > 其他 > 详细

idea项目 能正常启动 但是不能用mian方法

时间:2021-01-06 15:57:34      阅读:118      评论:0      收藏:0      [点我收藏+]

开发工具:idea
构建方式:gradle

报错如下:

FAILURE: Build failed with an exception.

Where:
Initialization script ‘/private/var/folders/2w/tt1p_4td3yq9xlbl7c2t4jn00000gn/T/Test1_main__.gradle’ line: 18

What went wrong:
A problem occurred configuring root project ‘demo10’.

Could not create task ‘:Test1.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 ‘Test1.main()’, but there is no existing task with that name.

技术分享图片
解决方式
技术分享图片
两个配置改成idea就ok了

idea项目 能正常启动 但是不能用mian方法

原文:https://www.cnblogs.com/mz5210/p/14240890.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!