guo
guo

Reputation: 10219

Where is the location that gradle downloads dependency in Android Studio?

Where is the location that gradle downloads dependency in Android Studio?

How to find them?

Upvotes: 18

Views: 11880

Answers (2)

Aleon Q
Aleon Q

Reputation: 507

With my setup, I can find the files at the following location:

~/.gradle/caches/modules-2/files-2.1/

For example, Picasso artifacts were downloaded at the following location on Mac: emphasized text/Users/USER_NAME/.gradle/caches/modules-2/files-2.1/com.squareup.picasso/picasso/

This folder has three directories for .pom file, sources, and actual jar file.

This is not in project specific .gradle folder but is in the global .gradle cache instead.

Upvotes: 32

studersi
studersi

Reputation: 1495

In my case the modules on which my app depend are downloaded to the project folder, alongside my app folder.

project_folder
|-app
|-module_1
|-module_2
|-...

Upvotes: 0

Related Questions