You are not logged in.
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
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.
Offline
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
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