
These directory locations may not apply to your project if you have not used the default locations set by Android Studio or if you have downloaded a project from GitHub (for example).

Android Studio projects: %USERPROFILE%\AndroidStudioProjects.The following list shows the default location of each Android Studio directory that could be added as an exclusion from Windows Defender real-time scanning:

You will then need to choose whether the exclusion you wish to add is a File, Folder, File type, or Process.Įxclusions to consider for Android development Scroll to the Exclusions heading and select Add or remove exclusions.Select Manage settings under Virus & threat protection settings.To add exclusions in the Windows Defender Security Center:

How to add exclusions to Windows Defender You should always evaluate the risks that are associated with implementing exclusions, and only exclude files that you are confident are not malicious. To ensure that your computer is safe from malicious software, you should not completely disable real-time scanning or your Windows Defender antivirus software.ĭefining exclusions lowers the protection offered by Defender.
