Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio- where the library classes are stored

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?

like image 859
Roster Avatar asked Aug 26 '16 09:08

Roster


People also ask

Which of the following library supports storage Android?

The AndroidX library contains the existing support library and also includes the latest Jetpack components. You can continue to use the support library. Historical artifacts (those versioned 27 and earlier, and packaged as android. support.

What is Java library Android?

Like the small description of each project type says, a Android Library is just another Android Application project,often referred to as Module.And Java Library is another word for a java project.The only difference between a module and a project is the complexity.


1 Answers

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:\Users\UserName\.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.

like image 91
Ichigo Kurosaki Avatar answered Oct 10 '22 12:10

Ichigo Kurosaki