So I have tried to add my local .jar file dependency to my build.gradle file:
apply plugin: \'java\' sourceSets { main { java { srcD
The solution which worked for me is the usage of fileTree in build.gradle file. Keep the .jar which need to add as dependency in libs folder. The give the below code in dependenices block in build.gradle:
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) }