当前位置:网站首页>> Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复
> Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复
2022-07-05 09:41:00 【沙漠一只雕得儿得儿】
Android studio 无法执行Java类的main方法问题及解决方法
FAILURE: Build failed with an exception.
* Where:
Initialization script 'C:\Users\eerdunsang\AppData\Local\Temp\MyTest_main__.gradle' line: 21
* What went wrong:
A problem occurred configuring project ':app'.
> Could not create task ':app:MyTest.main()'.
> SourceSet with name 'main' not found.
* 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 9s
9:10:31: Task execution finished 'MyTest.main()'.
解决方法:
在.idea文件夹下的gradle.xml文件中 <GradleProjectSettings>标签下添加<option name="delegatedBuild" value="false" />,然后重新运行就可以了
<option name="delegatedBuild" value="false" />
边栏推荐
- 《微信小程序-基础篇》小程序中的事件与冒泡
- Tongweb set gzip
- 面试:List 如何根据对象的属性去重?
- 天龙八部TLBB系列 - 关于技能冷却和攻击范围数量的问题
- Design of stepping motor controller based on single chip microcomputer (forward rotation and reverse rotation indicator gear)
- Data visualization platform based on template configuration
- How to get the STW (pause) time of GC (garbage collector)?
- [system design] index monitoring and alarm system
- tongweb设置gzip
- Z-blog template installation and use tutorial
猜你喜欢
Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
解决idea调试过程中liquibase – Waiting for changelog lock….导致数据库死锁问题
Apache DolphinScheduler 入门(一篇就够了)
Kotlin compose and native nesting
Cerebral cortex: directed brain connection recognition widespread functional network abnormalities in Parkinson's disease
【C语言】动态内存开辟的使用『malloc』
程序员搞开源,读什么书最合适?
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
能源势动:电力行业的碳中和该如何实现?
【小技巧】获取matlab中cdfplot函数的x轴,y轴的数值
随机推荐
Officially launched! Tdengine plug-in enters the official website of grafana
The comparison of every() and some() in JS uses a power storage plan
Comparison of batch merge between Oracle and MySQL
Cerebral Cortex:有向脑连接识别帕金森病中广泛存在的功能网络异常
Getting started with Apache dolphin scheduler (one article is enough)
Apache DolphinScheduler 入门(一篇就够了)
Design and Simulation of fuzzy PID control system for liquid level of double tank (matlab/simulink)
Cerebral cortex: directed brain connection recognition widespread functional network abnormalities in Parkinson's disease
.Net之延迟队列
Cent7 Oracle database installation error
Implementation of smart home project
Swift tableview style (I) system basic
基于单片机步进电机控制器设计(正转反转指示灯挡位)
oracle 多行数据合并成一行数据
Apache DolphinScheduler 系统架构设计
Single chip microcomputer principle and Interface Technology (esp8266/esp32) machine human draft
Mysql80 service does not start
B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条...
Uncover the practice of Baidu intelligent testing in the field of automatic test execution
【小技巧】获取matlab中cdfplot函数的x轴,y轴的数值