当前位置:网站首页>> 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" />
边栏推荐
- 双容水箱液位模糊PID控制系统设计与仿真(Matlab/Simulink)
- The essence of persuasion is to remove obstacles
- To bring Euler's innovation to the world, SUSE should be the guide
- Officially launched! Tdengine plug-in enters the official website of grafana
- Design of stepping motor controller based on single chip microcomputer (forward rotation and reverse rotation indicator gear)
- Swift uses userdefaults and codable to save an array of class objects or structure instances
- 程序员搞开源,读什么书最合适?
- The king of pirated Dall · e? 50000 images per day, crowded hugging face server, and openai ordered to change its name
- 写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用
- 面试:List 如何根据对象的属性去重?
猜你喜欢
Charm of code language
The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
把欧拉的创新带向世界 SUSE 要做那个引路人
Getting started with Apache dolphin scheduler (one article is enough)
La voie de l'évolution du système intelligent d'inspection et d'ordonnancement des petites procédures de Baidu
Wechat applet - simple diet recommendation (3)
程序员搞开源,读什么书最合适?
Node red series (29): use slider and chart nodes to realize double broken line time series diagram
剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
解决Navicat激活、注册时候出现No All Pattern Found的问题
随机推荐
卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程
[tips] get the x-axis and y-axis values of cdfplot function in MATLAB
一种用于干式脑电图的高密度256通道电极帽
盗版DALL·E成梗图之王?日产5万张图像,挤爆抱抱脸服务器,OpenAI勒令改名
Kotlin Compose 与原生 嵌套使用
Swift set pickerview to white on black background
Jupiter notebook shortcut key
基于单片机步进电机控制器设计(正转反转指示灯挡位)
How to implement complex SQL such as distributed database sub query and join?
MySQL字符类型学习笔记
Understand the window query function of tdengine in one article
MySQL数字类型学习笔记
Design and Simulation of fuzzy PID control system for liquid level of double tank (matlab/simulink)
Cerebral Cortex:有向脑连接识别帕金森病中广泛存在的功能网络异常
.Net之延迟队列
Swift saves an array of class objects with userdefaults and nssecurecoding
idea用debug调试出现com.intellij.rt.debugger.agent.CaptureAgent,导致无法进行调试
Are databases more popular as they get older?
天龙八部TLBB系列 - 单体技能群伤
B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条...