Unable to find Gradle tasks to build: [:]. Build mode: ASSEMBLE. Tests: None
Posted wanglongjiang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unable to find Gradle tasks to build: [:]. Build mode: ASSEMBLE. Tests: None相关的知识,希望对你有一定的参考价值。
从Github上下载了一个项目,运行时报如下错误:
Unable to find Gradle tasks to build: [:]. Build mode: ASSEMBLE. Tests: None
解决办法
1、修改Gradle版本;
2、项目中缺失setting.gradle文件 ,从其他项目中复制一份过来。
Unable to find a @SpringBootConfiguration
initializationError(com.example.demo.DemoApplicationTests) Time elapsed: 0.002 sec <<< ERROR! java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test at org.springframework.util.Assert.state(Assert.java:70)
由于包名不一致造成的,删除example包,或改成对应的报名即可
以上是关于Unable to find Gradle tasks to build: [:]. Build mode: ASSEMBLE. Tests: None的主要内容,如果未能解决你的问题,请参考以下文章
error: Unable to find vcvarsall.bat
Unable to find a @SpringBootConfiguration
IllegalStateException: Unable to find a @SpringBootConfiguration
Fatal error: Unable to find local grunt.