How to add a package with Gradle
Add the Grovs SDK dependency to your Android project using Gradle.
1
Open app/build.gradle
In Android Studio, open your app module's build.gradle, usually app/build.gradle.
2
Add the dependency
Add Grovs inside dependencies:
Groovy
dependencies {
// Other dependencies
implementation("io.grovs:Grovs:3.1.0")
}Check the Android SDK docs for the latest version.
3
Sync Gradle
Click Sync Now in the banner, or Sync Project with Gradle Files in the toolbar.
4
Verify the install
After the sync, the Grovs package appears under External Libraries in the Project view.
5
Import Grovs
Kotlin
import io.grovs.GrovsJava
import io.grovs.Grovs;Was this page helpful?