-
Go to C:/Users/…/.gradle/daemon/ (this is the file path on Windows systems, in macOS location of registry.bin.lock file is: ~/.gradle/daemon/{gradle_version}/)
-
Open any of the folders in daemon folder
-
Look for this file: registry.bin.lock
-
Delete all of them
-
Now go sync the gradle in Android Studio and your problem will be solved
-
Android Studio might needs to be re-installed