This is my global build.gradle file's content:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
}
}
allprojects {
repositories {
jcenter()
}
}
For example, I add this line in my application module build.gradle file.
compile 'com.squareup.okhttp:okhttp:2.0.0'
where can I find okhttp.jar or something else in my mac ?
Another way to find gradle cache in Android Studio .
Find this directory in your Android Studio's Project Tool windows:
And find a repository you want, and right-click it, choose Library Properties , and you'll find the gradle cache directory in your mac. Library Properties screenshot
On my machine it's under
~/.gradle/caches/modules-2/files-2.1/
might be slightly different on your computer I guess.
By default Gradle cache is located under your user home directory, in .gradle/caches/
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.