I solved the problem by finding the aar file of the library that is available at:
https://maven.moxtra.com/nexus/content/groups/public/com/github/icerockdev/MaterialFilePicker/1.9.1/
and importing the file locally using the FILE -> PROJECT STRUCTURE option and importing the dependency.
The file is not available in mavenCentral because it is an old library.