How to minimize Android Studio’s memory allocation

By | June 9, 2019

Android Development doesn’t work great in less than 8GB memory.

  1. Reduce the maximum heap size available to Android Studio
  2. Update Gradle and the Android plugin for Gradle
  3. Enable Power Save Mode
  4. Disable unnecessary link checks
  5. Debug on a physical device
  6. Include only necessary Google Play Services as dependencies
  7. Reduce the maximum heap size available for DEX file
  8. Do not enable parallel compilation
  9. Turn on Offline Mode for Gradle

Reference:

1. StackOverflow: Android studio takes too much memory
2. Configure the IDE for low-memory machines