Dependencies
Explore how to set up and manage dependencies in Android projects using Kotlin. Understand key libraries like Appcompat for backward compatibility, ConstraintLayout for efficient layouts, and Material for modern UI components to enhance your app development skills.
We'll cover the following...
The Android library ecosystem is huge, and most projects use dozens of libraries. Unlike Android SDK, libraries can be independently updated. That’s why even Google released around 30 libraries which are part of the Android Jetpack family.
Most of the Android libraries are available through Maven. To add a library, declare the group id, artifact id, and version in the app/build.gradle file in the dependencies section.
Here is a list of the most commonly used libraries, and why they are useful:
- Appcompat - makes the apps developed with newer versions work