Dependencies
Get a brief introduction to commonly used Android libraries in this lesson.
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.
Press + to interact
dependencies {// kotlinimplementation "androidx.core:core-ktx:1.6.0"implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"// uiimplementation 'androidx.appcompat:appcompat:1.3.0'implementation 'androidx.constraintlayout:constraintlayout:2.0.4'implementation 'com.google.android.material:material:1.3.0'}
Here is a list of the most commonly used libraries, and why they are useful:
- Appcompat - makes the apps developed with newer versions work