Most used method in android using java.
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add Gradle dependency:
dependencies {
implementation 'com.github.lordfarhan:android-toolbox:Tag'
}