1. Download our Official Android App: Forums for Android!

Android Studio runs out of disk space during upgrade

Discussion in 'Android Development' started by LV426, Aug 23, 2017.

  1. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator Thread Starter
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,460
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,460
    10,745
    1,988
    Male
    Software developer
    South West of England
    If like me, you use a Linux O/S such as Ubuntu (very wise choice :) you may encounter problems upgrading Android Studio.
    I've been struggling for a while to update, because it insisted on stashing all the downloaded images into /tmp (usually on the root filesystem of a Linux O/S). And in my case it was demanding Gigabytes of free space, which I didn't have.
    Finally learned a trick to get AS to dump stuff in a different place, preferably a partition with many GBs of free space. Note that this didn't work with previous versions of AS, but with 2.3 it does work.

    Simple answer is to export this env variable

    export _JAVA_OPTIONS=-Djava.io.tmpdir=/var/tmp

    See here for the description and solution -

    https://www.redips.net/linux/android-studio-no-space-left-on-device/
     

    Advertisement

Tags:

Share This Page

Loading...