I am getting a no space left on device error

别说谁变了你拦得住时间么 提交于 2019-12-06 03:25:19

问题


I tried installing a tablet as a virtual device and after installing it , It does not even show and my gradle stopped syncing citing no space on device...

Also I could not get the gradle vm settings to increase the memory using the option -Xmx512m

I could not delete the virtual device as it does not show any as intsalled , i cannot add as it shows no image available and the standalone sdk manager also does not open saying lack of memory...

I have a lot of disk and RAM free , and am at a loss...

I tried invalidating cache and restarting , that didnt help either... Any help will be appreciated...

OS : Solus Android Studio Version : 2.2


回答1:


Clearing the temporary folder worked for me...

sudo rm -rf /tmp/*



回答2:


You can increase available space in tmp by doing remount instead of "rm -rf" :

mount -o remount,size=8G,noatime /tmp



回答3:


I recently faced this problem I guess I have an answer. Step 1 : Close the emulator which is currently running and in which you want to see your results. Step 2 : Go to the AVD Manager in Android Studio which is a phone like icon and in there you will have your virtual machines displayed. Step 3 : Select the down arrow symbol in the right most corner of your virtual machine and click wipe data.

This way all the data is wiped off and you can open your virtual machine again

Hope this works for you ! :)



来源:https://stackoverflow.com/questions/41259024/i-am-getting-a-no-space-left-on-device-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!