How to read Gradle's registry.bin?
Try deleting the /Users/Friso/.gradle
directory and rebuild.
In my case, the registry.bin file was empty. However, there was a lock which seemed to be causing the issue. I deleted the lock file - registry.bin.lock from the /Users/varun/.gradle/daemon/2.8/ directory and it worked. Hope this helps.
It also happened in my Linux environment. Deleting .gradle folder and rebuilding the project worked again.