Here we will discuss four major configurations which include:
implementation, api, compileOnly and runtimeOnly

What are dependency and its configurations?

As a developer, we often need external or internal libraries or modules in our project. When a project, module, or library depends on further modules or libraries hence these modules or libraries on which we depend are called dependencies.

Every dependency declared for a Gradle project applies to a specific scope. For example, some dependencies should be used for compiling source code whereas others only need to be available at runtime. Gradle represents the scope of a dependency with the help of a Configuration.

Why configurations understanding is important?

Each configuration…

Gauraw Negi

Android Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store