Dependencies
This lesson introduces commonly used Android libraries.
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 Android Jetpack family.
Most of the Android libraries are available through maven. To add the library, declare the group id, artifact id, and version in the app/build.gradle file in the dependencies
section.
Press + to interact
dependencies {// uiimplementation 'androidx.appcompat:appcompat:1.1.0'implementation 'androidx.constraintlayout:constraintlayout:1.1.3'implementation 'com.google.android.material:material:1.1.0-alpha10'}
Here is the list of most commonly used libraries:
- appcompat - makes the apps developed with newer versions work with older versions
- constraintlayout - allows creating large and complex layouts with a flat view hierarchy
- material - brings