Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is m2repository folder in local android SDK?

I was trying to look for a list of version for android support library, and finally i found m2repository and support folders in android folder. What is that?

enter image description here

like image 643
kimkevin Avatar asked Dec 23 '16 07:12

kimkevin


People also ask

Where are external libraries stored in Android Studio?

Method 1: Copy external library to the libs folder Now click on the Android drop-down and change to Project files. Click on Project files. Copy the jar file to the libs folder. Here, you can see our added jar file under the libs folder.

Where are android libraries stored?

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.

How do I know if I have Android SDK installed?

In Android Studio, click File > Project Structure. Select SDK Location in the left pane. The path is shown under Android SDK location.


1 Answers

The m2repository folder is a Maven repository which contains all the support libraries as AAR archives. This is what Gradle uses when you tell it that your project depends on these libraries.

The support folder contains the same libraries, except they are structured as Android library projects with a library JAR and resources in the corresponding folders. You only need the support folder if you use the old Ant-based build system.

like image 183
Malcolm Avatar answered Oct 13 '22 12:10

Malcolm