当前位置:网站首页>> 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" />
边栏推荐
- MySQL数字类型学习笔记
- C#函数返回多个值方法
- [app packaging error] to proceed, either fix the issues identified by lint, or modify your build script as follow
- 剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
- Mobile heterogeneous computing technology GPU OpenCL programming (Advanced)
- oracle 多行数据合并成一行数据
- Coordinate system of view
- The essence of persuasion is to remove obstacles
- Windows uses commands to run kotlin
- Wechat applet - simple diet recommendation (4)
猜你喜欢
让AI替企业做复杂决策真的靠谱吗?参与直播,斯坦福博士来分享他的选择|量子位·视点...
[200 opencv routines] 219 Add digital watermark (blind watermark)
盗版DALL·E成梗图之王?日产5万张图像,挤爆抱抱脸服务器,OpenAI勒令改名
(1) Complete the new construction of station in Niagara vykon N4 supervisor 4.8 software
RMS TO EAP通过MQTT简单实现
MySQL字符类型学习笔记
Kotlin Compose 与原生 嵌套使用
【 conseils 】 obtenir les valeurs des axes X et y de la fonction cdfplot dans MATLAB
View Slide
Generics, generic defects and application scenarios that 90% of people don't understand
随机推荐
能源势动:电力行业的碳中和该如何实现?
Coffeescript Chinese character to pinyin code
ArcGIS Pro 创建要素
Hard core, have you ever seen robots play "escape from the secret room"? (code attached)
如何写出高质量的代码?
Click the picture in the mobile browser and the picture will not pop up
Windows uses commands to run kotlin
B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条...
RMS TO EAP通过MQTT简单实现
Cerebral Cortex:有向脑连接识别帕金森病中广泛存在的功能网络异常
Fluent development: setting method of left and right alignment of child controls in row
Cross process communication Aidl
Openes version query
oracle和mysql批量Merge对比
[C language] the use of dynamic memory development "malloc"
【C语言】动态内存开辟的使用『malloc』
mysql80服务不启动
Small program startup performance optimization practice
【小技巧】獲取matlab中cdfplot函數的x軸,y軸的數值
卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程