0

I have one annoying issue and I wonder what is behind it.

After working with layouts and resources in Android Studio (all 3+ version), I see significant slow down and I must restart and invalidate caches to get default smooth usage.

Studio gets so slow, that I cannot write text, scroll, or do anything without seeing a delay of 1-2 seconds.

This shows up much faster if I work with complex layouts and bigger resource files (strings, dimens, styles etc).

Any idea or we are stuck until IntelliJ improves it?

vanste25
  • 1,754
  • 14
  • 39

1 Answers1

0

Hope this will help you

  1. Go to msconfig and turn off unnecessary applications in start up tab.
  2. When you run an android emulator, turn on Use Host GPU option particularly if you have a powerful graphic card.

Reduce Build Process Heap Size in Android Studio

  1. Go to File->other settings->Default Settings->Build, Execution, Deployment->Compiler
  2. Change the build process heap size to smaller amount like 512MB from default size of 700MB.

Reduce DEX compiler Heap Size

  1. File->other settings->Default Settings->Build, Execution, Deployment->Compiler->Android compiler
  2. Maximum Heap size by changing the default value of 700MB to a lower value like 400MB.
  3. Disabling VCS in android studio and using an external program to handle VCS helped a lot. You can disable VCS by going to File->Settings->Plugins and disable the following:

• CVS Integration

• Git Integration

• GitHub

• Google Cloud Testing

• Google Cloud Tools Core

• Google Cloud Tools for Android Studio

• hg4idea

• Subversion Integration

Vijaya Varma Lanke
  • 603
  • 2
  • 7
  • 19