Android Development which folders to exclude for windows defender?

Robin Dijkhof picture Robin Dijkhof · Oct 14, 2018 · Viewed 8.5k times · Source

I excluded the follwing folders in windows defender, but the "Antimalware Service executable" is still using a lot of cpu.

  • C:\Program Files\Android\Android Studio
  • C:\Users\ME\.android
  • C:\Users\ME\MyAndroidProjects
  • C:\Users\ME\AppData\local\Android

Which folder/file did I forget?

Answer

David Vávra picture David Vávra · May 11, 2019

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