Android Studio each dependency package storage directory

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile project(':social_sdk_library_project')
    compile 'com.android.support:appcompat-v7:22.2.0'
    compile 'com.github.chrisbanes.photoview:library:1.2.3'
    compile 'com.android.support:support-v4:22.2.0'
    compile 'com.jakewharton:butterknife:6.1.0'
    compile 'com.networkbench.newlens.agent.android:nbs.newlens.agent:2.2.5'
    compile 'com.google.zxing:core:3.2.0'
    compile 'com.joanzapata.android:android-iconify:1.0.9'
    compile 'com.loopj.android:android-async-http:1.4.8'
}
The storage locations of the dependency packages under the above modules.

There is a list of referenced libraries under "External Libraries" in AndroidStudio. Right-click a library -> "Library Properties ..." to see the local storage path of the library you referenced, as shown below:



1. The dependencies of the build.gradle file in the project root directory

buildscript {
    repositories {
        jcenter ()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
    }
}

subprojects {
    repositories {
        jcenter ()
    }
}

On Windows, the save paths for the above three dependencies are:

C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.android.tools.build\gradle\2.2.2

C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.jfrog.bintray.gradle\gradle-bintray-plugin\1.7.1

C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.github.dcendents\android-maven-gradle-plugin\1.4.1


2. The dependencies of the build.gradle file under module

1). compile 'com.android.support:appcompat-v7:25.0.0'
It is android's own jar package. If gradle finds that the jar package is not available locally, it will be downloaded from the Internet and placed in the directory of the SDK.
D:\android\sdk\extras\android\m2repository\com\android\support\appcompat-v7\25.0.0\  
In this directory;  if you find that it already exists locally, use it directly.
2). compile 'com.jakewharton.rxbinding:rxbinding:0.4.0'
Third-party jar package. If gradle finds that the jar package is not available locally, it will go to the central warehouse to download the rxbinding 0.4.0 jar package.
C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.jakewharton.rxbinding\rxbinding\0.4.0
In this directory;  if you find that it already exists locally, use it directly. 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324584859&siteId=291194637