Add than 50 external jar files

Hi all, I want to use some external libraries (.jar) in the program are more than 50 .jar files, are not in maven so I can only include them by hand. I’ve seen other posts as include a library but is there any way to include them all without going one to one ?. The idea is to indicate a directory where they are the libraries without indicating the libraries one by one.
Greetings.

Since Studio version 2.2.1 you can use file dependencies in the following format:


files("${rootProject.projectDir}/lib/my-library-0.1.jar")
fileTree(dir: 'libs', include: ['*.jar'])
1 Like

Thanks Konstantin, I understand that the first sentence is to include a single .jar file does well or can also include * .jar?. In the second sentence, what is the path for the directory ‘libs’?
Greetings.

Solved Konstantin.
Thanks.