当前位置:网站首页>> 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" />
边栏推荐
- Cross process communication Aidl
- 如何獲取GC(垃圾回收器)的STW(暫停)時間?
- Kotlin compose multiple item scrolling
- 【OpenCV 例程200篇】219. 添加数字水印(盲水印)
- Apache dolphin scheduler system architecture design
- Analysis on the wallet system architecture of Baidu trading platform
- [C language] the use of dynamic memory development "malloc"
- TDengine 离线升级流程
- How to implement complex SQL such as distributed database sub query and join?
- Swift set pickerview to white on black background
猜你喜欢

单片机原理与接口技术(ESP8266/ESP32)机器人类草稿

From "chemist" to developer, from Oracle to tdengine, two important choices in my life

Tdengine already supports the industrial Intel edge insight package

高级 OpenCV:BGR 像素强度图

mysql80服务不启动

@SerializedName注解使用

MySQL character type learning notes

Mobile heterogeneous computing technology GPU OpenCL programming (Advanced)

Solve liquibase – waiting for changelog lock Cause database deadlock

Apache DolphinScheduler 入门(一篇就够了)
随机推荐
Fluent generates icon prompt logo widget
美图炒币半年亏了3个亿,华为被曝在俄罗斯扩招,AlphaGo的同类又刷爆一种棋,今日更多大新闻在此...
Kotlin compose multiple item scrolling
解决idea调试过程中liquibase – Waiting for changelog lock….导致数据库死锁问题
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode
双容水箱液位模糊PID控制系统设计与仿真(Matlab/Simulink)
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
The comparison of every() and some() in JS uses a power storage plan
MySQL数字类型学习笔记
Cerebral Cortex:有向脑连接识别帕金森病中广泛存在的功能网络异常
Optimize database queries using the cursor object of SQLite
Tianlong Babu TLBB series - questions about skill cooling and the number of attack ranges
善用兵者,藏于无形,90 分钟深度讲解最佳推广价值作品
Windows uses commands to run kotlin
分布式数据库下子查询和 Join 等复杂 SQL 如何实现?
【系统设计】指标监控和告警系统
[C language] the use of dynamic memory development "malloc"
单片机原理与接口技术(ESP8266/ESP32)机器人类草稿
Flutter development: a way to solve the problem of blank space on the top of listview
钉钉、企微、飞书学会赚钱了吗?