'Android Studio still giving me the warning about anti-virus program impacting my build performance besides adding exceptions

I still get the warning about my anti-virus program impacting my build performance, even though I have added the below exceptions in Avast:

C:\Androidstudioprojectss\*
C:\Program Files\Android\Android Studio1\*
C:\Program Files\Android\Android Studio2\*
C:\Program Files\Java\*
C:\Sdk5-2019\*
C:\Users\[my username]\.android\*
C:\Users\[my username]\.gradle\*
C:\Users\[my username]\AppData\Local\Google\AndroidStudio2021.1\*
C:\Users\[my username]\AppData\Local\Google\AndroidStudio4.1\*

I'm using Android Studio Bumblebee (2021.1.1). Pleases advise what I'm missing.



Solution 1:[1]

Add it in your Windows Defender(Windows Security) as well.

Add these folders as exclusion.

ALso if you have an above average machine the build time difference is not that significant

Solution 2:[2]

Turn off all anti-virus program

And try again

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Narendra_Nath
Solution 2 Jayesh Dankhara