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 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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With