Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.1 Preview1 Gives No space left on device Error

I updated my android studio to 2.1 preview version, after that it's giving No space left on device Error. How to resolve this issue?

like image 953
ketankk Avatar asked Mar 11 '16 20:03

ketankk


1 Answers

For me, this was due to my /tmp partition being too small. I got these errors both when trying to install a large device image (Android 7.1) and when trying to start an AVD. It seems that Android Studio will try to unzip big files in /tmp.

To increase the size of /tmp on Linux, set the size= parameter in /etc/fstab, e.g. on my Ubuntu I now have:

tmpfs /tmp tmpfs defaults,size=3g 0 0

A reboot is needed to apply that change.

Note that tmpfs is entirely held in RAM so you should probably undo this change after the installation of these components.

like image 10
Fabian Streitel Avatar answered Nov 01 '22 07:11

Fabian Streitel