Ramzan
Ramzan

Reputation: 211

What does it mean to add a dependency to something in Android Studio

I just met an error while working on my project and it was suggested by Android Studio to add dependency on FileProvider.getUriForFile. It resolved the error, but I do not know what it did. What does it mean to add a dependency?

Upvotes: 0

Views: 303

Answers (1)

Prem Raval
Prem Raval

Reputation: 356

Adding dependency in Android Studio is just like importing in other languages like in python/java. So it just depends on that specific function or class. The Gradle build system in Android Studio makes it easy to include external binaries or other library modules to your build as dependencies. The dependencies can be located on your machine or in a remote repository, and any transitive dependencies they declare are automatically included as well.

You can see the Add Build Dependencies for more details.

Upvotes: 1

Related Questions