Android Studio 3.0 laggy typing experience

Viewed 4408

I have an extremely disturbing laggy Android Studio editor. I read all proposed optimisation suggestions on the stack and did following things to speed it but nothing helped.

  • Increased the Heap Size in VM options with following options
  • Disabled all the plugins regarding git, svn etc.
  • Checked the followings in Compiler settings
  • Compiler independent modules
  • --offline in command line options
  • Configure on demand

My Device is an MBP from middle 2015 with 16 GB Ram and 512 GB SSD HD.The project is a Java Project which was ok on my other laptop. Any other things I can do?

3 Answers

Thank you guys for all advices. After having eye cancer with laggy editor I finally managed to speed it up. Fortunately It was not only the fault of the Android Studio itself, so that we can't blame it directly =)

As @FierceFox suggested I saw that windows server was working quite hard in the background and eating my CPU as well my memory.

sudo rm /Library/Preferences/com.apple.windowserver.plist
sudo rm ~/Library/Preferences/ByHost/com.apple.windowserver*.plist

Restart MacOSX with PRAM reset (hold the P and R keys while holding down the option (⌥) and command (⌘) keys before the gray boot screen appears)

Now My Editor is working fine again.

UPDATE:

As soon as I choose scaled resolution, the editor gets laggy again.! So it only works fine in default resolution.The problem is actualy only valid for Android Studio.In Xcode it seems to be OK.

I've experienced same problem. It was buildTools version 25.0.2, but these worked that time.

  1. Kill ADB once.

  2. Version dependent lag. Try another buildTools version.

  3. Avoid re-trigger completion (ex. kill a letter with back space) while editing. Code completion is a large part of lag.

Related