In my cases, I was getting the same problem, but I was making one mistake, I opened my IDE (I used IntelliJ), just by double-clicking.
But when I open the IDE with a right-click and select Run as Adminstrator, then this did not happen in my case. So give it a try. Please do not ignore any small mistake.
source
share