Windows Defender might be impacting your build performance

Android StudioJetbrains Ide

Android Studio Problem Overview


After I updated my PyCharm IDE to 19.2.0 from the 19.1.2. I am getting the following warning:

"Windows Defender might be impacting your build performance. PyCharm checked 
thefollowing directories:
C:\Workspace\Projects\576_UniversityTwitter 
C:\Users\Burak\.PyCharmCE2019.2\system 
C:\Users\Burak\.gradle

Do you think that it is secure, necessary and really improve the performance?

Android Studio Solutions


Solution 1 - Android Studio

You need to exclude those directories in your Windows Security's Exclusion list.

  1. Type Windows Security in your windows Search bar
  2. Click Virus & threat protection
  3. Under Virus & threat protection settings header, click Manage Settings
  4. Under Exclusions header, click Add or remove exclusions
  5. Click Add an exclusion
  6. Select type Folder
  7. Enter the directory
  8. You are done

Yes it is secure, necessary and really improves the performance as the real-time scanning is enabled in Windows defender by default. Read this: Minimize the impact of antivirus software on build speed.

Solution 2 - Android Studio

I faced the same problem with Android Studio which is from same company after the recent update. So what you can do is you will get the directory which is causing this error. Like You will get the directories here

Then you need to go to Windows Defender and add these folders to the exclusion in Windows Defender or the antivirus you are using.

Solution 3 - Android Studio

I did the above steps with adding exceptions to the defender, but the message in the WebStorm application did not want to disappear.

Running the WebStorm application as administrator helped me.

Solution 4 - Android Studio

As described in the User guide for Android Studio:

> ### Optimize Android Studio performance on Windows > > --- > > Android Studio performance on Windows can be impacted by a variety of > factors. This section describes how you can optimize Android Studio > settings to get the best possible performance on Windows. > > ### Minimize the impact of antivirus software on build speed > > Some antivirus software can interfere with the Android Studio build > process, causing builds to run dramatically slower. When you run a > build in Android Studio, Gradle compiles your app’s resources and > source code and then packages the compiled resources together in an > APK. During this process, many files are created on your computer. If > your antivirus software has real-time scanning enabled, the antivirus > can force the build process to halt each time a file is created while > the antivirus scans that file. > > To avoid this issue, you can exclude certain directories from > real-time scanning in your antivirus software.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBurakView Question on Stackoverflow
Solution 1 - Android StudioXenon KfrView Answer on Stackoverflow
Solution 2 - Android Studiorohan ghoshView Answer on Stackoverflow
Solution 3 - Android StudioMTNView Answer on Stackoverflow
Solution 4 - Android StudioVen RenView Answer on Stackoverflow