gradle刷新本地缓存

方式1 :If you are using a recent version of Gradle, you can use –refresh-dependencies option.

1
./gradlew build --refresh-dependencies

方式2:On Unix systems, you can delete all the existing artifacts (artifacts and metadata) Gradle has downloaded using:

1
rm -rf $HOME/.gradle/caches/