当前位置:网站首页>> 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" />
边栏推荐
- Charm of code language
- 解决Navicat激活、注册时候出现No All Pattern Found的问题
- 历史上的今天:第一本电子书问世;磁条卡的发明者出生;掌上电脑先驱诞生...
- How to correctly evaluate video image quality
- Tdengine offline upgrade process
- Swift uses userdefaults and codable to save an array of class objects or structure instances
- How to get the STW (pause) time of GC (garbage collector)?
- MySQL digital type learning notes
- 卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程
- 盗版DALL·E成梗图之王?日产5万张图像,挤爆抱抱脸服务器,OpenAI勒令改名
猜你喜欢

程序员如何活成自己喜欢的模样?

On July 2, I invite you to TD Hero online press conference

苹果 5G 芯片研发失败?想要摆脱高通为时过早

钉钉、企微、飞书学会赚钱了吗?

《微信小程序-基础篇》小程序中的事件与冒泡

Cent7 Oracle database installation error

La voie de l'évolution du système intelligent d'inspection et d'ordonnancement des petites procédures de Baidu

Coordinate system of view

Solve liquibase – waiting for changelog lock Cause database deadlock

高级 OpenCV:BGR 像素强度图
随机推荐
RMS TO EAP通过MQTT简单实现
Getting started with Apache dolphin scheduler (one article is enough)
MySQL数字类型学习笔记
Wechat applet - simple diet recommendation (4)
【 conseils 】 obtenir les valeurs des axes X et y de la fonction cdfplot dans MATLAB
To bring Euler's innovation to the world, SUSE should be the guide
历史上的今天:第一本电子书问世;磁条卡的发明者出生;掌上电脑先驱诞生...
一个程序员的职业生涯到底该怎么规划?
如何写出高质量的代码?
Unity粒子特效系列-毒液喷射预制体做好了,unitypackage包直接用 - 上
H. 265 introduction to coding principles
Swift uses userdefaults and codable to save an array of class objects or structure instances
Tdengine already supports the industrial Intel edge insight package
Baidu app's continuous integration practice based on pipeline as code
单片机原理与接口技术(ESP8266/ESP32)机器人类草稿
[system design] index monitoring and alarm system
Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process
最全是一次I2C总结
ThreadLocal source code learning
How to implement complex SQL such as distributed database sub query and join?