How to simplify dependency management in Android studio (APG-12)
Rajesh Hadiya
Helps you to master Android & Spring Boot ?? Aaye hain to thoda content dekh ke jaiye ?? Join our next Android meetup (pinned post ??)
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.
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-02?(Join this if the first group is full)