I have got this problem. the emulator is open when ı start debugging ı came across this problem. Execution failed for task ':app:validateSigningDebug'.
java.nio.file.AccessDeniedException: C:\Users\mehme.android\debug.keystore.lock
I had the same issue and what solved it was deleting the file debug.keystore.lock,
My issue started when I created an SSH key with the command keytool -list -v -alias androiddebugkey -keystore c:\Users.....
It created the debug.keystore and the debug.keystore.lock, apparently the lock was not giving permission to run the app.