4

I'm an android developer and have laptop with 4GB RAM. When I compile my project the RAM is used at 100%.

RAM Usage

If I add more RAM will it solve the problem?

Zanna
  • 72,471

2 Answers2

11

The recommended amount of RAM for running Android Studio Ubuntu is 8GB, and your computer has only 4GB of RAM. You should expect to get not better than minimal performance from hardware that meets only the minimal requirements for Android Studio, and you should expect to get recommended performance from hardware that meets the recommended requirements.

As you get deeper into Android Studio you'll find out again and again what a resource hog it is. Android Studio is a very feature rich IDE, and you need to give it more resources in order to use all of its great features. In addition to the RAM having a decent graphics card would also help.

karel
  • 122,695
  • 134
  • 305
  • 337
1

Not only an Android IDE a resource Hog, but you will need from time to time one, sometimes more, android emulators, and those eat even more RAM. I'd consider 8Gb barely enough.

But!

At the same time, there is a quirk with Linux memory usage that you should know of. Read this: Linux ate my RAM Resource monitor is not a way to judge RAM usage, the free tool is.