solved the problem by doing the following
- go to c:/Users/Jack/.gradle/daemon/
- open any of the folders in Daemon , look for this file registry.bin.lock
- rm (delete it)
- now go sync the gradle in android studio and your problem will be solved
Success
solved the problem by doing the following