gradle could not find method compile()
来源:互联网 发布:农业追溯软件 编辑:程序博客网 时间:2024/06/05 05:37
今天在使用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 插件
于是我检查代码 还真没有这个插件的信息 于是我加上后就没有发生上面的错误了
0 0
- gradle could not find method compile()
- Could not find method compile() for arguments
- Could not find method compile() for arguments
- Could not find method compile() for arguments
- 【bug】Could not find method compile() 解决
- Could not find method compile() for arguments
- Android Studio中 Error:Could not find method compile() for arguments
- androidstudio 编译问题 Error:Could not find method compile() for arguments...
- Could not find method compile() for arguments [project:'lib'] on root project ''
- Could not find method问题解决
- Gradle DSL method not found: 'compile() 解决办法
- Gradle DSL method not found :'compile'
- Gradle DSL method not found: 'compile()’
- Gradle DSL method not found:'compile()'
- 解决 Gradle 2.0后 : Could not find property 'Compile' on root project 的问题
- After upgrading to Gradle 2.0: Could not find property 'Compile' on root project
- Gradle sync failed: Gradle DSL method not found: 'compile()'
- Gradle sync failed: Could not find method android() for arguments [build_aj7feyco0x5e5hj3g6wttaj6$_
- Windows套接字编程/Socket
- View中事件分发的过程
- lua5.1学习笔记(一)
- 坐标位置
- 第十周项目2-二叉树遍历的递归算法
- gradle could not find method compile()
- 利用GitHub搭建个人网站
- Leetcode--62. Unique Paths
- 深入Linux文件权限 SUID/SGID/SBIT
- iTween基础之Move(移动)
- AM3359 GPIO 驱动设计
- Web前端优化最佳实践及工具集锦
- 第N个偶斐波那契数
- 语法分析--左递归的消除,FIRST集合FOLLOW集的求解