To add dependencies to a project, state the dependency configuration like dependencies block of the build.gradle file.