in my case the error was this:
C:\Users\fredd\.gradle\caches\8.10.2\transforms\2d8a2d75abb4f712781589a914e5f386\metadata.bin (El sistema no puede encontrar el archivo especificado)
Then, to fix this problem, I open the windows explorer going to this path:
C:\Users\fredd\.gradle\caches\8.10.2
then I deleted the "transforms" directory, but before I closed the Android Studio, then I deleted, it.
After you deleted it, re-open the android studio and now you project will be ready again.
cheers!