(OK) Android Studio 3.2 中建立新的AVD時,出現錯誤(No space left on device)—— on Fedora 27
阿新 • • 發佈:2019-01-11
To install:
- Google APIs Intel x86 Atom System Image (system-images;android-27;google_apis;x86)
Preparing "Install Google APIs Intel x86 Atom System Image (revision: 5)".
Downloading https://dl.google.com/android/repository/sys-img/google_apis/x86-27_r05.zip
An error occurred while preparing SDK package Google APIs Intel x86 Atom System Image: No space left on device.
"Install Google APIs Intel x86 Atom System Image (revision: 5)" failed.
Failed packages:
- Google APIs Intel x86 Atom System Image (system-images;android-27;google_apis;x86)
通過如下步驟 建立 新的 AVD 時,
Tools -> Android -> AVD Manager # launch the AVD Manager, Creating a New AVD
出現上述錯誤(No space left on device.)
主要原因:/tmp 的空間不足,By default /tmp is a tmpfs limited to half the size of RAM.
檔案系統 容量 已用 可用 已用% 掛載點
tmpfs 3.8G 3.8G 0G 100% /tmp
解決問題的方法-1:
mkdir /opt/tmp
umount -l /tmp
mount --bind /opt/tmp /tmp
解決問題的方法-2:
# increase the size of the /tmp
mount -o remount,size=8G,noatime /tmp
重新建立 新的 AVD,即可成功。
然後,rm /opt/tmp/* -rf
或者,重啟系統
- Google APIs Intel x86 Atom System Image (system-images;android-27;google_apis;x86)
Preparing "Install Google APIs Intel x86 Atom System Image (revision: 5)".
Downloading https://dl.google.com/android/repository/sys-img/google_apis/x86-27_r05.zip
An error occurred while preparing SDK package Google APIs Intel x86 Atom System Image: No space left on device.
"Install Google APIs Intel x86 Atom System Image (revision: 5)" failed.
Failed packages:
- Google APIs Intel x86 Atom System Image (system-images;android-27;google_apis;x86)
通過如下步驟 建立 新的 AVD 時,
Tools -> Android -> AVD Manager # launch the AVD Manager, Creating a New AVD
出現上述錯誤(No space left on device.)
主要原因:/tmp 的空間不足,By default /tmp is a tmpfs limited to half the size of RAM.
檔案系統 容量 已用 可用 已用% 掛載點
tmpfs 3.8G 3.8G 0G 100% /tmp
解決問題的方法-1:
mkdir /opt/tmp
umount -l /tmp
mount --bind /opt/tmp /tmp
解決問題的方法-2:
# increase the size of the /tmp
mount -o remount,size=8G,noatime /tmp
重新建立 新的 AVD,即可成功。
然後,rm /opt/tmp/* -rf
或者,重啟系統