版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zero_295813128/article/details/53054304
今天在使用gradle构建项目的时候出现了如下的报错信息
因为是第一次使用gradle构建项目,很多原理不是很明白就贴上了构建项目的代码
//所有子项目的通用配置 subprojects { apply plugin: 'idea' //定义版本号 ext { springVersion = '3.2.11.RELEASE' hibernateVersion='4.3.1.Final' } //仓库 repositories { mavenCentral() } dependencies { // 通用依赖 compile("org.springframework:spring-context:$springVersion") // 测试依赖 testCompile("org.springframework:spring-test:$springVersion","junit:junit:4.11") } }上stackoverflow发现也有人发生了我这样的问题
上面的意思貌似是说compile编译是一个配置信息通常要引入一个插件类似 java 插件
于是我检查代码 还真没有这个插件的信息 于是我加上后就没有发生上面的错误了