How to simplify dependency management in Android studio

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.

3. Enter the name (or FQN) of the desired dependent and press enter.
Your dependency will be available in the build.gradle file.
Share with your friends

Leave a Reply

Your email address will not be published. Required fields are marked *