You are not logged in.

#1 2017-04-29 14:07:27

linusforpresident
Member
Registered: 2016-11-05
Posts: 14

Android Studio SDK Installation - No space left on device

I'm trying to install some specific SDK versions in Android Studio. The downloads fail due to lack of space despite having 150gb+ free on disk.

From what I've read I think there may be an issue with the limitations on the size of /tmp. I don't have enough experience to speak to that but it seems likely. I've tried rm -rf /tmp/* with no luck. Can anybody suggest other potential solutions?

To install:
- Google APIs Intel x86 Atom_64 System Image (system-images;android-23;google_apis;x86_64)
- Android SDK Platform 23 (platforms;android-23)
- Intel x86 Atom_64 System Image (system-images;android-23;default;x86_64)
Preparing "Install Google APIs Intel x86 Atom_64 System Image (revision: 20)".
Downloading https://dl.google.com/android/repository/sys-img/google_apis/x86_64-23_r20.zip
An error occurred while preparing SDK package Google APIs Intel x86 Atom_64 System Image: No space left on device.
"Install Google APIs Intel x86 Atom_64 System Image (revision: 20)" failed.
Preparing "Install Android SDK Platform 23 (revision: 3)".
Downloading https://dl.google.com/android/repository/platform-23_r03.zip
An error occurred while preparing SDK package Android SDK Platform 23: Cannot download 'https://dl.google.com/android/repository/platform-23_r03.zip': No space left on device
, response: 200 OK.
"Install Android SDK Platform 23 (revision: 3)" failed.
Preparing "Install Intel x86 Atom_64 System Image (revision: 9)".
Downloading https://dl.google.com/android/repository/sys-img/android/x86_64-23_r09.zip
An error occurred while preparing SDK package Intel x86 Atom_64 System Image: Cannot download 'https://dl.google.com/android/repository/sys-img/android/x86_64-23_r09.zip': No space left on device
, response: 200 OK.
"Install Intel x86 Atom_64 System Image (revision: 9)" failed.
Failed packages:
- Google APIs Intel x86 Atom_64 System Image (system-images;android-23;google_apis;x86_64)
- Android SDK Platform 23 (platforms;android-23)
- Intel x86 Atom_64 System Image (system-images;android-23;default;x86_64)

Last edited by linusforpresident (2017-04-29 14:07:48)

Offline

#2 2017-04-29 15:52:46

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Android Studio SDK Installation - No space left on device

By default /tmp is a tmpfs limited to half the size of your RAM. Either change where Android Studio is downloading the files or follow the instructions in the wiki to resize or disable the tmpfs.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-04-30 15:00:04

RoundCube
Member
Registered: 2016-05-14
Posts: 42

Re: Android Studio SDK Installation - No space left on device

A line like that in /etc/fstab would increase your max size.

tmpfs            /tmp    tmpfs   size=7G,nodev,nosuid   0 0

Last edited by RoundCube (2017-05-05 02:54:21)

Offline

#4 2017-07-25 08:16:58

KamikadzeM22
Member
Registered: 2017-07-24
Posts: 1

Re: Android Studio SDK Installation - No space left on device

I had been having the same issue. Not sure if that was a good solution, but I unmounted /tmp and made a bind of the /tmp to the folder on other mounted HDD. Thus, I "increased" /tmp size without rebooting. I think that it can be useful if you do not have enough ram or swap. These changes to the /tmp folder are temporary and will be reset after restart.

umount -l /tmp
mount --bind /path/to/folder/tmp /tmp

You'll have to delete files in temporary tmp folder manually as they won't be deleted after restart:

rm -r /path/to/folder/tmp/*

Last edited by KamikadzeM22 (2017-07-25 08:21:24)

Offline

Board footer

Powered by FluxBB