简体   繁体   中英

Android Studio Dependency Search

Is there any plugin in android studio to search for dependencies. Like if i wanted to include retrofit library, I just have to search the keyword 'retrofit' and it will be added to the build.gradle

Go to open module setting of project. Click on + button on right side, and search retrofit by clicking search button.

Open Module Settings by right clicking on app and selecting Open Module Settings :

在此输入图像描述

A dialog window will appear titled with Project Structure . Select Dependencies Tab and click on + icon shown in the right toolbar.

Select

  1. Library Dependency if you want to add dependencies from web.
  2. File Dependency if you want to add jar file dependencies residue in your project lib folder.
  3. Module Dependency if you want to add a project module dependencies.

在此输入图像描述

I selected Library Dependencies and Searched for volley , results are:

在此输入图像描述

Hope this will help you enough.

Try this:

Project Structure > Dependencies Tab > Add module dependency

右键单击您的项目>打开模块设置>>从右侧窗口选择依赖项选项卡>>从底部工具栏中单击加号>>选择库依赖项>在对话框中输入搜索文本>单击确定

I don't think that kind of plugin exists but check out this link.This is something similar of what you are looking.

http://gradleplease.appspot.com/#appcompat

You have to type the name of the library and it will give you the gradle dependancy link which you have to put in your gradle file. Try this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM