I used to copy \'compile\' dependencies to a specific folder using this simple gradle task :
task copyLibs(type: Copy) {
from configurations.compile
I started getting this error after upgrading from gradle 5.5 to 5.6, and it happens when I try to sync the project in intelliJ.
Thanks to this answer on another question, I solved it by applying the idea plugin to all projects and then running gradle cleanIdea and after that everything started working again.
Another day, another #inexplicable solution to a problem.