Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio slow performance

I've updated Android Studio to version 2.3 yesterday and since after I'm experiencing a slow performance, it was working fine before, though slow when gradle building, but now it taking 100% of processors resources.

What is the requirements for Android Studio to run smoothly?

My computer runs Windows 7 x64, i7 core, with 8 cores, 10Gb of RAM

Here is a screenshot

like image 488
esQmo_ Avatar asked Jan 31 '26 10:01

esQmo_


1 Answers

To run Android environment on low configuration machine.

  1. Close the unnecessary web tabs in browser
  2. For Antivirus users, exclude the build folder which is auto generated
  3. Android studio have 1.2 GB default heap can decrease to 512 MB

Help > Edit custom VM options

studio.vmoptions
 -Xmx512m

Layouts performance will be speed up

  1. For Gradle one of the core component in Android studio Make sure like right now 3.0beta is latest one

Below tips can affect the code quality so please use with cautions:

  1. Studio contain Power safe Mode when turned on it will close background operations that lint , code completions and so on.

  2. You can run manually lint check when needed ./gradlew lint

  3. Most of are using Android emulators on average it consume 2 GB RAM so if possible use actual Android device these will reduce your resource load on your computer. Alternatively you can reduce the RAM of the emulator and it will automatically reduce the virtual memory consumption on your computer. you can find this in virtual device configuration and advance setting.

  4. Gradle offline mode is a feature for bandwidth limited users to disable the downloading of build dependencies. It will reduce the background operation that will help to increase the performance of Android studio.

  5. Android studio offers an optimization to compile multiple modules in parallel. On low RAM machines this feature will likely have a negative impact on the performance. You can disable it in the compiler settings dialog.

like image 128
Smit Patel Avatar answered Feb 03 '26 04:02

Smit Patel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!