gradle Build Model failure
2015-11-04 16:12
381 查看
FAILURE: Build failed with an exception.
* Where:
Build file 'E:\github\xUtils3-master\library\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':library'.
> Failed to apply plugin [id 'com.android.library']
> Gradle version 2.2 is required. Current version is 2.1. If using the gradle wrapper, try editing the distributionUrl in D:\eclipse\gradle\wrapper\gradle-wrapper.properties to gradle-2.2-all.zip
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
查看gradle版本如下:
C:\Users\Administrator>gradle --version
------------------------------------------------------------
Gradle 2.3
------------------------------------------------------------
Build time: 2015-02-16 05:09:33 UTC
Build number: none
Revision: 586be72bf6e3df1ee7676d1f2a3afd9157341274
Groovy: 2.3.9
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_40 (Oracle Corporation 25.40-b25)
OS: Windows 8.1 6.3 amd64
可是在项目的 build.gradle 里 输入
println("I'm now compiling with gradle " + project.gradle.gradleVersion);
打印的是:
I'm now compiling with gradle 2.1
在windows -> preferences ->Gradle 里的 Gradle User Home(.gradle folder location) 自定义 gradle的bin 目录(D:\gradle-2.3\lib)解决问题。
* Where:
Build file 'E:\github\xUtils3-master\library\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':library'.
> Failed to apply plugin [id 'com.android.library']
> Gradle version 2.2 is required. Current version is 2.1. If using the gradle wrapper, try editing the distributionUrl in D:\eclipse\gradle\wrapper\gradle-wrapper.properties to gradle-2.2-all.zip
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
查看gradle版本如下:
C:\Users\Administrator>gradle --version
------------------------------------------------------------
Gradle 2.3
------------------------------------------------------------
Build time: 2015-02-16 05:09:33 UTC
Build number: none
Revision: 586be72bf6e3df1ee7676d1f2a3afd9157341274
Groovy: 2.3.9
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_40 (Oracle Corporation 25.40-b25)
OS: Windows 8.1 6.3 amd64
可是在项目的 build.gradle 里 输入
println("I'm now compiling with gradle " + project.gradle.gradleVersion);
打印的是:
I'm now compiling with gradle 2.1
在windows -> preferences ->Gradle 里的 Gradle User Home(.gradle folder location) 自定义 gradle的bin 目录(D:\gradle-2.3\lib)解决问题。
相关文章推荐
- UIAlertController
- iOS小技巧-UITableView去除底部多余的分割线方法以及设置分割线风格和颜色
- UITextField文字垂直居中和placeholder偏上的问题
- hdu 5531 Rebuild(三分)
- History of UNIX Project Build Tools
- iOS—UI——CALayer
- 接口测试SoapUI参数化
- light oj 1100 - Again Array Queries(暴力,鸽巢原理)
- [leetcode] 63. Unique Paths II 解题报告
- getSession().createQuery("from Users");与getHibernateTemplate().find( "FROM Users);
- UIView —— 所有控件的载体
- [leetcode] 62. Unique Paths 解题报告
- (八)jms topic与jms queue区别
- android build Communication error with Jack server (52)
- Android目录介绍&UI简介
- NSFetchRequest CoreData条件搜索
- [扩展]EasyUI给dialog的buttons绑定click事件
- theano, scan关于 theano.scan函数一些简单的应用只包括fn ,sequences 和outputs_info
- easyui tab
- iOS之获取UITableViewCell中UITextField的值方法总结