Android Development which folders to exclude for windows defender?

This is now described in official documentation:

  • Gradle cache
    %USERPROFILE%\.gradle
    
  • Android Studio projects
    %USERPROFILE%\AndroidStudioProjects
    
  • Android SDK
    %USERPROFILE%\AppData\Local\Android\SDK
    
  • Android Studio system files
    Syntax:
    %LOCALAPPDATA%\Google\<product><version> 
    
    Example:
    C:\Users\YourUserName\AppData\Local\Google\AndroidStudio4.1
    

I faced the same problem.

After a deep search i excluded these folders, and it worked perfect. enter image description here