I have created an android project its name is a Sample app I also created a library module inside the Sample app project. The sample app has a dependency on other libraries so I have added required jar files inside the libs folder of the Sample app. the same jar files are required inside the module as well.
how can I add the dependency for the module to refer to the sample app's libs folder? I have tried this below but every time giving a Duplicate copy file exception.
repositories {
flatDir { dirs '../libs' }
}
compile fileTree(dir: '../libs', include: '*.jar')