From the course: Android Studio Essential Training 2020

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Add external libraries with dependencies

Add external libraries with dependencies

From the course: Android Studio Essential Training 2020

Start my 1-month free trial

Add external libraries with dependencies

- [Instructor] A dependency is a text-based instruction to the Gradle build system, to locate, download and integrate a library of some kind into your project. It could be a library that's specific to Android, from Google or from some third party, or it could be any sort of Java or Kotlin-based library. They're all usable in Android and Android Studio. Your dependencies should be declared in your build.gradle file for the app module, not in build.gradle for the project. And you'll see examples of these in a new project generated in Android Studio. This first dependency is an instruction to include any jar files that are in the libs directory. This is for the standard Kotlin library, this is for extension functions for Kotlin, this is for the appcompat library, one for constraint layout and so on. Depending on what kind of project you generated in Android Studio, you might see more dependencies than these already here.…

Contents