How to simplify dependency management in Android studio (APG-12)

How to simplify dependency management in Android studio (APG-12)

When developing an Android app, you need deal with numerous dependencies. Typically, you would go to the library's GitHub (or maven) website and copy its fully qualified name (FQN), for example, io.github.hadiyarajesh: then put it into the app level build.gradle file.

This is a time-consuming and laborious process. It becomes considerably more annoying when you have to include several dependencies. Fortunately, there is a better way.


Meet Android Studio Dependency Management

You can add dependencies straight from Android Studio (without knowing its FQN)

To add dependencies,

1. Launch the Project Structure window by pressing Ctrl+Alt+Shift+S (or File -> Project Structure).

2. From the left panel, pick the Dependencies tab, click on the All Dependencies section. Then press Alt+Insert (or press the Add button) and select Library Dependency.

No alt text provided for this image

3. Enter the name (or FQN) of the desired dependent and press enter.

No alt text provided for this image

Your dependency will be available in the build.gradle file.

#android?#androiddeveloper?#androiddevelopment?#androidstudio?#kotlin?#java


We also have an android developer community on WhatsApp where we enjoy learning and sharing everything android, including live sessions, interview preparation, job referral, tutorials, and Q&A. Join us if you're interested.

https://bit.ly/adc-whatsapp-1

https://bit.ly/adc-whatsapp-02?(Join this if the first group is full)

No alt text provided for this image

要查看或添加评论,请登录

Rajesh Hadiya的更多文章

社区洞察

其他会员也浏览了