How Add External Jar Gradle build
If you are using Gradle for your project build and you need to add external jars from your local directory you could use below:
Linux:
dependencies{ compile files('file:////var/temp/Test.jar') }
Window:
dependencies{ compile files('file:////C:/JavaHonk/Test.jar') }
Reference: Getting start with Gradle