gradle 强制刷新缓存

在使用gradle build后如果报错了

1
2
3
4
Could not resolve all files for configuration ':compileClasspath'.
> Could not find ojdbc14.jar (com.oracle:ojdbc14:10.2.0.4.0).
Searched in the following locations:
http://xxxxxx/repository/xxxxxx.jar

即便你在把jar上传到正确的位置也不能下载,使用下面参数

1
gradle build --refresh-dependencies