Skip to content Skip to sidebar Skip to footer

How To Speed Up Android Studio On A Mac

I am trying to develop some native Android apps using Android Studio (latest) on OS X Yosemite. Currently Android Studio is simply unusable: it is too slow. I am not referring to t

Solution 1:

I did the following to resolve the Android Studio slowness.

Go to Android -> Preferences -> Build, Execution, Deployment -> Compiler

Check the Option -

Compile independent modules in parallel (may require larger heap size)

Set VM Options to :

-Xmx2048m -XX:MaxPermSize=512

Restart Android Studio.

Solution 2:

After understanding of @Benjamin and @Marco Hc, I captured a screenshot and tried to represent the solution graphically. Every number in the picture represents the flow of the solution: enter image description here

  1. Go to Android -> Preferences

  2. Click on Build, Execution, Deployment

  3. Click on -> Compiler

  4. Check the Option - Compile independent modules in parallel (may require larger heap size)

  5. Check on Use in-process build" and "Configuration on demand and click OK button

  6. Restart Android Studio and that's it.

Solution 3:

It's more than enough, there are some tricks to improve your Android Studio performance:

With these two tricks you'll feel the difference. Let me know.

Cheers!

Solution 4:

Yes, that is enough computer. I use Android Studio on both my Mid 2011 iMac and my MBP 2.5GHz i7. Android Studio and the emulator are pretty slow to load on the iMac, but I do not have the issues while typing that you describe on either machine.

What version of Android Studio are you using?

Solution 5:

In my case, I saw that only Android Studio was laggy (problems while typing or using the mouse). The other apps were ok.

I had a look to "activity monitor" and saw in the "processor" and "memory" tabs that some apps regularly induced peaks on the processor graph or memory graph. You can also see that these apps move a lot in the listing (going up and down) during the peaks.

I noticed that the apps inducing peaks were:

  • "Kies" app by Samsung : I removed it from the apps launched at startup and deleted this crap app
  • "CrashPlan" (a backup app): I launched the app and logged into it (it was not logged in)
  • I desactivated Apple speech recognition in my Mac settings (a process named "applespeechrecognition" or something like that)

My Mac is now much faster and have no more problems with Android Studio ! :)

Post a Comment for "How To Speed Up Android Studio On A Mac"