From the course: Android Development Essential Training: 1 Your First App
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Using dependencies - Android Tutorial
From the course: Android Development Essential Training: 1 Your First App
Using dependencies
- [Instructor] The libraries that your app needs to run are stored in Maven repositories. Maven is a system that allows developers to share libraries. As an example, this is the Maven Repository page for the Kotlin Gradle plugin. On it, we find information about the type of license it has, the different available versions, and when they were released. In Android Studio, we specify the dependencies we need in our module-level build.gradle file. Down here in the dependency section, each dependency starts with a keyword that denotes how it should be included, the default is implementation, then there's a string which indicates which library and the version of the library that your app needs. If you want to use a variable for the version value, you must declare your string with double quotes, as we see here for our Kotlin dependency, otherwise you can use single quotes when the version number is hard coded as in our…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Check out the exercise files on GitHub2m 15s
-
(Locked)
Explore the project structure3m 28s
-
(Locked)
Introduction to Gradle1m 40s
-
(Locked)
Manage Gradle build scripts3m 6s
-
(Locked)
Using dependencies2m 33s
-
(Locked)
Explore Jetpack components1m 39s
-
(Locked)
Troubleshoot Android Studio projects3m 54s
-
(Locked)
Challenge: Find the dependency59s
-
(Locked)
Solution: Find the dependency1m 27s
-
(Locked)
-
-