Can Gradle builds fail with 1.25 GB RAM installed?

Whatever I do, I can’t finish .apk build process on my old notebook that I’m using during holiday. I always got ‘Daemon Unexpected error output’ messages.
I have only 1.25 GB installed on that machine - this could be the problem eventually?
Is there a way to identify the issue as RAM issue in the .out log files?