Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Development which folders to exclude for windows defender?

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?

like image 583
Robin Dijkhof Avatar asked Oct 14 '18 15:10

Robin Dijkhof


2 Answers

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
    
like image 172
David Vávra Avatar answered Oct 17 '22 00:10

David Vávra


I faced the same problem.

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

like image 9
Badr At Avatar answered Oct 16 '22 22:10

Badr At