简体   繁体   中英

Where can I find third party library source in Android Studio?

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:

External Libraries screenshot

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/ .

Here are more details about it (inc how to override it) .

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM