Monday, October 16, 2017

Android Studio: No space left on device

I have run into this problem on two instances:
  1. While performing installation, updates of SDK or new system images.

    This means your tmpfs does not have enough capacity. But you can't just flush contents of your /tmp to free space since the installation data is downloaded there. You can either disable tmpfs or mount tmp to /var/tmp/ by adding this line to the top of studio.sh:
    export _JAVA_OPTIONS=-Djava.io.tmpdir=/var/tmp
  2. Android Virtual Device (AVD) fails to start giving this particular error. You can just go ahead and clear everything in your /tmp with something like sudo rm -rf /tmp/*

No comments:

Post a Comment

AVDs not starting with hardware emulation for graphics

Okay, so with hardware emulation enabled for graphics, I ran into another issue where an AVD would not launch at all. The progress bar on t...