[SOLVED] Android Studio- where the library classes are stored

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under
CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.


I would like to know some facts about android studio. If we use like this compile 'com.android.support:appcompat-v7:24.1.1' in gradle file, then how/when android studio downloads the library and store it in where?

Also how to change the default location of library download?


The android default libraries like appcompact, design support libraries are stored in your folder where you have installed the SDK, precisely <SDK FOLDER>/extras/android/m2repository/com/android .
The 3rd party libraries are stored in .gradle/caches/modules-2/files-2.1 folder.
The gradle folder is hidden. In linux you can find it in your home directory by pressing ctrl+h which helps to view hidden files and folder.
In windows it is present at C:UsersUserName.gradle
e.g if you are using butterknife library then in above path there will be a folder get created as com.getkeepsafe.relinker, inside that folder you will find its related folders and files, .aar or .jar files.

Hopes this clears your question.

Answered By – Ichigo Kurosaki

people found this article helpful. What about you?