Android Studio-存储库类的位置 [英] Android Studio- where the library classes are stored

查看:133
本文介绍了Android Studio-存储库类的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道一些有关android studio的事实. 如果我们在gradle文件中使用这样的compile 'com.android.support:appcompat-v7:24.1.1',那么android studio如何/何时下载该库并将其存储在哪里?

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?

还如何更改库下载的默认位置?

推荐答案

android默认库(例如appcompact,设计支持库)存储在您安装SDK的文件夹中,精确地是<SDK FOLDER>/extras/android/m2repository/com/android.
第三方库存储在.gradle/caches/modules-2/files-2.1文件夹中.
gradle文件夹已隐藏.在Linux中,您可以通过按ctrl+h在主目录中找到它,这有助于查看隐藏的文件和文件夹.
在Windows中,它存在于C:\Users\UserName\.gradle
例如,如果您使用的是 butterknife 库,则在上面的路径中将创建一个名为com.getkeepsafe.relinker的文件夹,在该文件夹内,您将找到其相关的文件夹和文件,.aar.jar文件

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.

这篇关于Android Studio-存储库类的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆