I use Kaspersky Internet Security on my PC. Some time ago I started receiving such alert:
Your anti-virus program might be impacting your build performance. Android Studio checked the following directories:
C:\Users\Andrew\.AndroidStudio3.5\system
D:\Android Development\jobnet-android
C:\Users\Andrew\.gradle
C:\Users\Andrew\AppData\Local\Android\Sdk
I have added these folders to antivirus ignore list but I still continue receiving this alert. Maybe I did smth wrong and I have to add these paths to some another lists. I also saw some questions and links like that. At every link which I saw all suggestions are connected with Windows Defender but I think that it is turned off. Maybe someone knows how to fix this alert?
If you have also Windows Defender on your PC you will need to add those folders to exceptions under:
That worked for me and I also have a third party antivirus, ESET, but I think the process is the same for Kaspersky