Your anti-virus program might be impacting your build performance. Android Studio checked the following directories:
How to solve this?
Best answer by Flood and Flood's wife
If you are absolutely sure about the safety of the application, you can force-add the application to the exclusions list. Keep in mind that by forcing the antivirus to ignore the potential danger, you are subjecting the computer data to the risk of infection. Even a perfectly legitimate app can be compromised.
How to exclude an application from scanning